![]() ![]() Which means you have not got the bin directory of your JDK as one element of the PATH environment variable. I haven't used it for some time but I know that JDeveloper allows you to specify that it should create a jar file and specify the main class. my problem may be solved lol at least the problem of the class not working. why does it have manifest.mf instead of the manifest that I wrote myTimer.mf? hmm. ![]() However JDev is so kind as to give me a jar listing after it deploys the jar. I found a whole range of java.exe (java.exe, javax.exe, etc) in the JRE directory and in the C:\Windows\System32 directory just as expected but no jar.exe 'jar' is not recognized as an internal or external command,Īnd I tried looking around to try to find a jar.exe file or something that I could point to and call the command that way and it doesnt exist anywhere on my computer. I tried using cmd to do this and I got this: I am not using cmd I am using JDeveloper. Post the jar listing and the content of MANIFEST.MF. Jar -xf your-jar.jar META-INF/MANIFEST.MF James Sabre wrote:Phew - that is very hard to read. I have been doing rather extensive research on how to create the executable jar and I made the manifest page and put the Main-Class: Timer.myTimer and everything but I am still getting the error "Failed to load Main-Class manifest attribute from " I have tried doing it in cmd like I saw in most places I looked and I cant even get it to do anything I get an error saying that jar is not a valid command or something like that, I have tried writing the manifest with and without the package name (there is only one class in the entire jar) I have tried writing it as Manifest-Classname: like I saw in one thread somewhere. maybe if at some point i want to pass it around or something). but I would just really rather have a real/practical usable version of the program instead of having to run it in testing form. I wrote a fairly simple program the purpose of which is to remind me to do my pushups every 30 minutes because I keep getting too into what I am doing and losing track of time, but I dont want to bog down my system by having it constantly running in the back through JDeveloper and I just generally want it more easily accessible than to have to open up JDeveloper every day in order to run it (I pretty much have it open every day anyway. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |