• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

packaging

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nope dead link. I guess i put to many '/'s in some of that path. Awaiting more info.
roba
 
Sheriff
Posts: 28346
97
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic