Importing .JAR into workspace JAVA

java

#1

Hello, i’m trying to import a project into C9, I created a folder and uploaded the main folder of the .JAR into it, but it creates a lot of folders instead of the packages.

Anyone knows how to do this?

Thanks!


#2

This might be what you are referring to
cd /where/you/want/it; jar xf /path/to/jarfile.jar
Source


#3

It gives me this:

java.io.FileNotFoundException: HAW_26-05-16.jar (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:146)
        at java.io.FileInputStream.<init>(FileInputStream.java:101)
        at sun.tools.jar.Main.run(Main.java:260)
        at sun.tools.jar.Main.main(Main.java:1231)

#4

Did you enter the correct path to the .jar file? Because it says no such file…


#5

NVM, I got it to work, thanks!!