understanding the command line under run
/usr/lib/jvm/oracle-java8-jdk-i386/bin/java -javaagent:/home/pi/Desktop/idea-IC-182.4129.33/lib/idea_rt.jar=36635:/home/pi/Desktop/idea-IC-182.4129.33/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/oracle-java8-jdk-i386/jre/lib/charsets.jar:/usr/lib/jvm/oracle-java8-jdk-i386/jre/lib/deploy.jar:/usr/lib/jvm/oracle-java8-jdk-i386/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/oracle-java8-jdk-i386/jre/lib/ext/dnsns.jar:/usr/lib/jvm/oracle-java8-jdk-i386/jre/lib/ext/jaccess.jar:/usr/lib/jvm/oracle-java8-jdk-i386/jre/lib/ext/jfxrt.jar:/usr/lib/jvm/oracle-java8-jdk-i386/jre/lib/ext/localedata.jar:.....
this is what is run when i build/run my program. there is more but i just put the ...
[code=java]
/home/pi/Desktop/idea-IC-182.4129.33/lib/idea_rt.jar=36635:/home/pi/Desktop/idea-IC-182.4129.33/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/oracle-java8-jdk-i386/jre/lib/charsets.jar:
[/code]
Can someone help me understand what is being done here? I need to eventually make this independent and not reliant on intellij resources. The goal for this program I'm working on needs to be ultra low resource and storage is a big concern so i cant have the intellij on there but still need it to run.
Please sign in to leave a comment.
Hi.
Regarding idea_rt.jar please check:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000104550-Classpath-for-Run-Debug-Application-requires-platform-specific-path-separators-and-idea-rt-jar
If you need to run your program outside IDEA you need to create an artifact:
https://www.jetbrains.com/help/idea/working-with-artifacts.html
I tried following the instructions but i dont think its compiling right or a directory is off.
https://mega.nz/#!dBxxjbZJ!t9mBG8dCJF-oRaIMo1Zemb53YW9A9Jz5f-rCemejoWQ
is the attempted jar.
When you run it you get an error that is related to not detecting one of the libraries i added. BTC-BCH.jar to be exact.
When you extract it and run the bat file it works fine. Below is the screenie for my artifact settings.
could you help out a bit and explain why its not finding the libraries i added?
Please check this answer:
https://stackoverflow.com/a/42200519/8958060