#could someone help me make a jar that would run a run.bat in the same dir?
44 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @fickle adder! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed 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.
Are you using a build tool?
yeah im using illij
If not, what IDE are you using?
not sure what that means
Do you mean IntelliJ?
yeah
Yeah, that's the IDE
Are you using Maven or Gradle? Do you have a pom.xml or build.gradle file?
i dont know what those are haha
Do you have these files in your project?
not sure how to check...
i have no idea what im doing i know nothing about coding or java
i just want to run the run.bat in that dir using a .jar
would that be possible to code?
i found some code online but i have no idea what im doing
So do you want to create a JAR file from a Java project?
i dont know what that means hahaha
What do you want to do?
create a .jar that will run the run.bat
that would first require creating a program doing that
I thought you already had that program lol
i am not sure what you mean lmao
And why do you want such a JAR?
because i need a custom.jar to run my server and ripping one out of one of the folders doesnt seem to work
so i thought i could run the run using a jar
?
i have no idea what im doing
lol
sorry for wasting your time i dont think i came to the right place with this request lol
Well, you could create a Java project that runs the file, compile it and create a JAR out of it
but I don't really understand why you would want such a JAR
that seems weird
because the run.bat runs like multiple files or something
im not sure
was just an idea of mine
and the hosting service im using doesnt allow me to use a run.bat to run the server
and i have to use a .jar
ok
So first you would need to create a Java project
you said you were using IntelliJ?
yeah