Author | Message |
---|---|
bprerak
Posts: 7
|
Posted 19:31 Oct 29, 2017 |
I was trying to make a runnable jar file, but my class is not showing in the launch configuration. can someone please help me. |
jhurley
Posts: 207
|
Posted 20:11 Oct 29, 2017 |
could be the problem described in lecture 12, slide 8 |
bprerak
Posts: 7
|
Posted 20:14 Oct 29, 2017 |
I have done that, my program runs in eclipse, but i can't seem to make a jar file. i also have main method in my class |
jhurley
Posts: 207
|
Posted 20:27 Oct 29, 2017 |
if it runs in Eclipse, there is a valid run configuration. Make sure the one you choose when making the .jar file is the same one you use to run the code in Eclipse. |
bprerak
Posts: 7
|
Posted 20:30 Oct 29, 2017 |
yeah, but the class is not showing in the launch configuration. I created this jar file, but when I run it in command prompt, it says this no main manifest attribute, in Lab8.jar what should i do? Last edited by bprerak at
20:40 Oct 29, 2017.
|
jhurley
Posts: 207
|
Posted 20:43 Oct 29, 2017 |
are you sure you chose "runnable jar file" as opposed to just "jar file" in the first dialog box? |
bprerak
Posts: 7
|
Posted 20:44 Oct 29, 2017 |
yeah, i'm choosing runnable jar file. In my class I have this main method -------------------- public static void maint(String[] args) { launch(args); } ========= is it correct? Last edited by bprerak at
20:50 Oct 29, 2017.
|
jhurley
Posts: 207
|
Posted 07:00 Oct 30, 2017 |
yes, that looks right, assuming maint is a typo for main. Ask Sumanth for help in the lab today |