L2JMobius

High Five Problem with open executable files

smurf4e11 · 15 · 5243

Offline smurf4e11

  • Vassal
  • *
    • Posts: 6
Hi all!

I had downloaded the server pack from the repo.
I have installed OpenJDK 12 from readme on my laptop and Java RE 8 from java . com
When i click open on anyof the executable files in Dist folder, just nothing happens.
If someone had the same problem or know the solution for that, please help. :)


Offline ReynalDev

  • Knight
  • ***
    • Posts: 92
  • https://reynaldev.pythonanywhere.com/
    • ReynalDev
Unistall all the Javas you have, then install only the version need it for your Chronicle.

This is an example of Java 11 but is the same process for version 12,13.... and so on: https://www.youtube.com/watch?v=Cr_mwn67kFs


Offline smurf4e11

  • Vassal
  • *
    • Posts: 6
I do what you said. Uninstall all old java installs and install Java 12.0.2 ( JDK: https://www.mediafire.com/file/k25pt0umuf16uoh/openjdk-12.0.2_windows-x64_bin.zip ) as read_me.txt says in High Five Repo.
When i run java -version all seems to be fine and show the correct version of JDK and JRE.
The problem still exist when try to open the .exe files for example (loginserver.exe or gameserver.exe) just nothing hapend. At first escalate me to give them a admin privileges and when i click OK and nothing. This is for all the exe files.
I run Java applications for example Minecraft and  Minecraft server without problems for example.


Online bctey

  • Knight
  • ***
    • Posts: 96
Set JAVA_HOME
- Right click on "My Computer" on your Desktop.
- Click "Properties".
- Click "Advanced system settings".
- Click the "Environment Variables..." button.
- Click the "New..." button.
- Type at Variable name: JAVA_HOME
- Type at Variable value: C:\Program Files\Java\jdk-12.0.2\bin


Offline smurf4e11

  • Vassal
  • *
    • Posts: 6
Yeah, it's setup exactly like this!
I add it to PATH and JAVA_HOME on both environment variables and user variables, but still nothing happens when i try to open compiled exe files, no errors, no console UI... nothing happens  :-\


Offline ReynalDev

  • Knight
  • ***
    • Posts: 92
  • https://reynaldev.pythonanywhere.com/
    • ReynalDev
Yeah, it's setup exactly like this!
I add it to PATH and JAVA_HOME on both environment variables and user variables, but still nothing happens when i try to open compiled exe files, no errors, no console UI... nothing happens  :-\

Try to execute the jar using the console, you should see a problem if any.
Code: [Select]
java -jar JarFileName.jar


Offline smurf4e11

  • Vassal
  • *
    • Posts: 6
java -jar Database_Installer_GS.exe

Error: Invalid or corrupt jarfile Database_Installer_GS.exe

It's same for all .exe files in dist


Online bctey

  • Knight
  • ***
    • Posts: 96
win+r→cmd→cd file folder
java -jar Database_Installer_GS.jar


Offline smurf4e11

  • Vassal
  • *
    • Posts: 6
D:\Lineage 2 H5\L2J_Mobius_CT_2.6_HighFive\dist\db_installer>java -jar Database_Installer_GS.exe
Error: Invalid or corrupt jarfile Database_Installer_GS.exe

D:\Lineage 2 H5\L2J_Mobius_CT_2.6_HighFive\dist\db_installer>java -jar Database_Installer_GS
Error: Unable to access jarfile Database_Installer_GS

D:\Lineage 2 H5\L2J_Mobius_CT_2.6_HighFive\dist\db_installer>java -jar Database_Installer_GS.jar
Error: Unable to access jarfile Database_Installer_GS.jar

There is not JAR file inside folder, there is only Database_Installer_GS.exe Database_Installer_LS.exe


Offline ReynalDev

  • Knight
  • ***
    • Posts: 92
  • https://reynaldev.pythonanywhere.com/
    • ReynalDev

There is not JAR file inside folder, there is only Database_Installer_GS.exe Database_Installer_LS.exe

Yeah, my bad  :P :P. Execute the file just putting the name of the file.



Offline smurf4e11

  • Vassal
  • *
    • Posts: 6
yeah, i try all the ways to execute it... but w/o success

D:\Projects\Lineage\L2J_Mobius_CT_2.6_HighFive\dist\db_installer>Database_Installer_GS.exe

D:\Projects\Lineage\L2J_Mobius_CT_2.6_HighFive\dist\db_installer>



Online JMD

  • Heir
  • **
    • Posts: 47
I dont understand why these cant just be good old and reliable .bat files.


Offline ReynalDev

  • Knight
  • ***
    • Posts: 92
  • https://reynaldev.pythonanywhere.com/
    • ReynalDev

There is not JAR file inside folder, there is only Database_Installer_GS.exe Database_Installer_LS.exe

There must exist JAR files, if you only have .exe files in the directory then you are missing compiling step.



Offline zemaitis

  • Vassal
  • *
    • Posts: 2
You dont have to install openjdk 12.0.2 (for example Im running jdk8 and don't want to change HOME variable). You can use it as a portable version.

All you need to do is extract jdk 12.0.2 to any folder (I extracted to C:/Program Files/Java) and then do this:

1. Open cmd, then CD to your db_installer foler

Quote
cd C:\Users\YOUR\Desktop\L2J_Mobius_Classic_3.0_TheKamael\db_installer

2. start javawe.exe (change my path with your own location of jdk-12.0.2)

Quote
start C:\"Program Files"\Java\jdk-12.0.2\bin\javaw.exe -jar Database_Installer_GS.jar