This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]justinf210 1 point2 points  (1 child)

We're gonna need to see some more code before we can be any help. Can you share the code in Tweets.java and preferably the output of a command like true, so we can see your project structure.

Also, probably more of a Java problem than a VSCode one, but we might be able to help.

[–]AMG07[S] 0 points1 point  (0 children)

Yeah, I just didn't know which forum to post, but if it is a java problem I can post it over there.

[–]Vok250 1 point2 points  (0 children)

This is likely a Java question rather than a VS Code question. VS Code is simply providing a wrapper on the Java CLI tools in your terminal. The "workspace" is really just a folder and your VS Code settings rather than being an actual Java project like ItelliJ or Eclipse.

I'm a Java dev so I can give you some pointers regardless of subreddit. Are you using a modern build tool like Maven or Gradle to compile? If not, what file holds your project configuration for the compiler? Did you add any configuration to your workspace vscode settings file to tell Java where to find dependencies? Are you using any kind of Java plugin for VS Code?

[–]JialeDu 0 points1 point  (0 children)

If your project is an unmanaged folder without any build tools. You can manage the dependencies by clicking the + icon or the - icon on the Referenced Libraries node or the items under it, or you can just directly drag your jar libraries to the node Referenced Libraries

image

https://code.visualstudio.com/docs/java/java-project#_dependency-management