Executing a jar file through c#
I'm trying to make a C# launcher for a java program so it'll be easier to run it, but I'm running into issues (especially with getting it working on linux specifically). Has anyone done this before?
8 Replies
C# launcher for a java programAKA a launcher for Minecraft, correct?
kinda like the mc launcher yeah
Currently the code installs the latest release from github of the program, I just have to make it run it
$details
When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, what you expect the result to be, what .NET version you are using and what platform/environment (if any) are relevant to your question. Upload code here https://paste.mod.gg/, save, and copy the link into chat for others to see your shared code! (see $code for more information on how to paste your code)
but I'm running into issuesThis is lacking a lot of information such as what issues? Do you have a code to show?
yeah here
here's the error it's giving
it gives a different error when I run it in terminal
which is this
I'm 99% sure this is because the jar is broken but fixing that isn't the most important thing
I more just want them to both give the same error
why are you trying to run it with bash?
is that not what I'm supposed to do?
Imma be honest I was just stealing code and hoping it'd work
turns out the command needs to be
java -jar Marrow.jar
to work, though this doesn't fix my main issue
found some code to fix it!
just gonna close this now