• Post Reply Bookmark Topic Watch Topic
  • New Topic

packaging  RSS feed

 
rob armstrong
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a application and i want to make it a clickable .jar file.
I assume all the classes related to the application object will be in the .jar file.

Now my path to the .java file is this
c:\\java\\PhantomYard\src\main.java

so the 1st line in my code is this
package PhantomYard;

Now I am using NetBeans software.
I can grab the software out of the \dist folder and use it there or move it to another drive location and use it fine. I have sent it to someone expericenced with java and he can use it. 3 others that are less expericenced with java say when they try it it gives them a error that it can't find the Main-Class.

Thanks in advance
roba
 
Kaustabh Singha Roy
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find good instruction about this here http://www.skylit.com/javamethods/faqs/createjar.html.

I think the path to your .java files should look something like this...

c:\\java\\src\PhantomYard\main.java

Hope this is going to help.
 
rob armstrong
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope dead link. I guess i put to many '/'s in some of that path. Awaiting more info.
roba
 
Paul Clapham
Sheriff
Posts: 22509
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rob armstrong:
Nope dead link.
You'll want to delete the period at the end of that URL.
 
rob armstrong
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Still not working out. I read the tutorial and tried 1000 diffent combinations of the package statement and still have no luck. Is it something with the classpath??
roba
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!