asfenask.blogg.se

How to make a bluej program executable
How to make a bluej program executable








how to make a bluej program executable

Here's a batch file I use to create a jar Create the HTTPServer.jar file: You do that by issuing the jar command in the folder that contains the start of the package path. class files in the jar file must be in folders/have paths that match the package they are in. This is what I get back:Įxception in thread "main" : org/jfree/panning/XYPLOTĬaused by: : Īt $1.run(URLClassLoader.java:202)Ĭould not find the main class: org/jfree/panning/XYPLOT. Program will exit.Īfter it tells me that "XYPLOT" is the wrong name and says "org/jfree/panning/XYPLOT", I decide to make "org/jfree/panning/XYPLOT" the Main-Class path. jar produced, this is what command prompt gives me:Ĭ:\Users\Luke\Desktop\>java -jar XYPLOT.jarĮxception in thread "main" : XYPLOT (wrong name: org/jfree/panning/XYPLOT)Īt 1(Native Method)Īt (ClassLoader.java:632)Īt (ClassLoader.java:616)Īt (SecureClassLoader.java:141)Īt (URLClassLoader.java:283)Īt $000(URLClassLoader.java:58)Īt $1.run(URLClassLoader.java:197)Īt (Native Method)Īt (URLClassLoader.java:190)Īt (ClassLoader.java:307)Īt $AppClassLoader.loadClass(Launcher.java:301)Īt (ClassLoader.java:248)Ĭould not find the main class: XYPLOT. The first time I try to run the executable. jar executable that is made is called XYPLOT.jar. I compile a jar and modify the MANIFEST.MF inside to include the Main-Class line and the Class-Path line. Inside the folder I have the third party library. So I created a folder off my desktop called.

HOW TO MAKE A BLUEJ PROGRAM EXECUTABLE FULL

The full contents of the command prompt window when you try to execute the jar file. Use the jar command to put the manifest and class files into the jar file. A screwup anywhere will cause it to fail.Ĭreate a manifest file with the Main-Class: lineĪdd a Class-path: line for your third party jarĬompile all the class files into a folder matching their packages

how to make a bluej program executable how to make a bluej program executable

There are several steps to putting an app in a jar.










How to make a bluej program executable