#could someone help me make a jar that would run a run.bat in the same dir?

44 messages · Page 1 of 1 (latest)

fickle adder
#

help please

solemn vesselBOT
#

This post has been reserved for your question.

Hey @fickle adder! Please use /close or the Close Post button 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.

surreal glade
#

Are you using a build tool?

fickle adder
#

yeah im using illij

surreal glade
#

If not, what IDE are you using?

fickle adder
#

not sure what that means

surreal glade
fickle adder
#

yeah

surreal glade
#

Yeah, that's the IDE

#

Are you using Maven or Gradle? Do you have a pom.xml or build.gradle file?

fickle adder
#

i dont know what those are haha

surreal glade
#

Do you have these files in your project?

fickle adder
#

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

surreal glade
#

So do you want to create a JAR file from a Java project?

fickle adder
#

i dont know what that means hahaha

surreal glade
#

What do you want to do?

fickle adder
#

create a .jar that will run the run.bat

surreal glade
#

that would first require creating a program doing that

#

I thought you already had that program lol

fickle adder
#

i am not sure what you mean lmao

surreal glade
#

And why do you want such a JAR?

fickle adder
#

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

surreal glade
#

?

fickle adder
#

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

surreal glade
#

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

fickle adder
#

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

surreal glade
#

ok

#

So first you would need to create a Java project

#

you said you were using IntelliJ?

fickle adder
#

yeah