Compiling class file to Jar always fails

so, im trying to compile a class file to a jar but I always get an error saying that it couldn't parse file arguments, what do I do?
19 Replies
JavaBot
JavaBot2w ago
This post has been reserved for your question.
Hey @Royalrex25! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Royalrex25
Royalrex25OP2w ago
I've tried several variants of the jar command to no avail and netbeans 23 doesn't have the option to build to a jar
real
real2w ago
Stack Overflow
How do I make a JAR from a .java file?
I was writing a simple program using a Java application (not application that has projects, but application within a project; .java) that has a single frame. Both of the files are .java so I can't ...
Royalrex25
Royalrex25OP2w ago
thanks, but now to program won't run and the gui won't open from the jar
real
real2w ago
use
java -jar App.jar
java -jar App.jar
to run it
Royalrex25
Royalrex25OP2w ago
it says that there's no main manifest attribute
real
real2w ago
ae
Royalrex25
Royalrex25OP2w ago
ae?
real
real2w ago
I forgot how to fix that part let me remember
Royalrex25
Royalrex25OP2w ago
I used a secondary class that I set to the main class for my gui program if that helps
real
real2w ago
wait what IDE do you use?
Royalrex25
Royalrex25OP2w ago
netbeans 23, but I dont have an option for compiling to jar within netbeans 23
real
real2w ago
ah crap I don't know how netbeans work
Royalrex25
Royalrex25OP2w ago
what?
real
real2w ago
sorry I couldn't help you
Royalrex25
Royalrex25OP2w ago
ive tried looking around and couldnt find anything online anyways no problem, hopefully someone knows how to help
real
real2w ago
hopefully someone helps you
Royalrex25
Royalrex25OP2w ago
we can only hope
JavaBot
JavaBot2w ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
Want results from more Discord servers?
Add your server