Results 1 to 5 of 5
- 02-18-2009, 10:30 AM #1
Member
- Join Date
- Oct 2008
- Posts
- 63
- Rep Power
- 0
[SOLVED] Running Code in my own application
Hi, I am writing a Java application and I have followed instructions from this link on how to run my code:
Generating Custom Taglets and Compiling Source Directly From a Program
and from this link on how to put a jar in your classpath:
Adding Classes to the JAR File's Classpath (The Java™ Tutorials > Deployment > Packaging Programs in JAR Files)
I have put the tools.jar in the same directory as my java file. Note that I have successfully ran my executable jar file with just the Main-Class attribute in it. Could it be the Classpath attribute? I have Main-Class on the first line, then classpath on the second line, then a blank line.
Help is greatly appreciated.
- 02-18-2009, 04:25 PM #2
Download a IDE, blueJ is a good enough one..
Use this to write your code in, compile it, run it, create jars, etc..
Using IDEs is alot easier for users than terminals and command lines.
If you specifically want to create your application through console, post what errors you are getting.
Hope that helps.They're 10 people in the world, those who speak binary, and those who dont.
^ Lame i know, but i can actually count in it nowadays! :eek:
- 02-18-2009, 04:40 PM #3
Member
- Join Date
- Oct 2008
- Posts
- 63
- Rep Power
- 0
Ok, thanks. Just one question. If I use BlueJ or another IDE to set the classpath, then I create my jar file, will I be able to run it on any other PC without setting the classpath every time?
- 02-18-2009, 05:58 PM #4
Yep, Just double click the jar file.
(even if you run it from command line, it should still work)They're 10 people in the world, those who speak binary, and those who dont.
^ Lame i know, but i can actually count in it nowadays! :eek:
- 02-18-2009, 08:38 PM #5
Member
- Join Date
- Oct 2008
- Posts
- 63
- Rep Power
- 0
Similar Threads
-
swt application running
By wolve634 in forum SWT / JFaceReplies: 3Last Post: 10-28-2008, 02:14 PM -
application is not running please fine the solution for it.
By jagadeeshchinni in forum New To JavaReplies: 4Last Post: 09-28-2008, 10:14 AM -
Maintain same session in two application running on same server
By dsiwal in forum Threads and SynchronizationReplies: 2Last Post: 06-10-2008, 06:38 AM -
Running a application in java
By barney in forum Java AppletsReplies: 1Last Post: 08-07-2007, 07:12 AM -
Running application in back
By fernando in forum Advanced JavaReplies: 1Last Post: 08-01-2007, 12:25 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks