• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java compiling error: package does not exist  RSS feed

 
Lukas Casier
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to compile a .java file (TransformRTDE.java) that uses several import statements. These statements import .class files present in five external JAR files: dataextract.jar, jna.jar, JRI.jar, JRIEngine.jar and REngine.jar. I have read documentation on how to deal with these import statements while trying to compile your .java file from the command line. However, I do not seem to succeed.

I set up the directory in the command line to be the folder in which my .java file resides. In that same folder, I have put the JAR files. When I try to compile the code using java -cp dataextract.jar:jna.jar:JRI.jar:JRIEngine.jar:REngine.jar TransformRTDE.java, I get a package does not exist error. I have set up the class path to include the folder in which all my .java and .jar files reside.

I have searched for hours on this without success. Any ideas what I'm doing wrong?

Thanks in advance!

error.png
[Thumbnail for error.png]
Error in command line
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On Windows you need to use semi-colons instead of colons to separate classpath entries.
 
Lukas Casier
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:On Windows you need to use semi-colons instead of colons to separate classpath entries.


Indeed, it's surprising how many wrong answers there are for this question. Thank you, issue resolved.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!