Menu

#39 Cant run games, GUI cant find my files

v0.70
closed-fixed
None
5
2021-07-18
2021-06-01
ablaszczyk
No

Runing as usual... duble click on front and as i can see in logs

File 'a2/ARMAGED1_00407_02.zip' not found.
copyToTempDir '' to '/tmp/jgamebase'
java.io.FileNotFoundException:  (No such file or directory)
    at java.base/java.io.FileInputStream.open0(Native Method)
    at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
    at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
    at jgamebase.tools.FileTools.copyToTempDir(FileTools.java:714)
    at jgamebase.tools.FileTools.copyOrExtractToDir(FileTools.java:695)
    at jgamebase.db.model.Game.play(Game.java:1192)
    at jgamebase.db.model.Game.play(Game.java:1144)
    at jgamebase.gui.GuiObjects.itemTable_MouseHandler(GuiObjects.java:2757)
    at jgamebase.gui.GuiObjects.access$10(GuiObjects.java:2746)
    at jgamebase.gui.GuiObjects$13.mouseClicked(GuiObjects.java:827)

Also few line later i have

FileToRun: ''.
Using Emulator: 'VICE x64 (fast)'.
BATCHSCRIPT
Executing game: '</home/test/.jgamebase/C64lite/Scripts/vice_x64.js> <>'
Setting work directory to '/home/test/.jgamebase/C64lite/Scripts'.
/home/test/.jgamebase/C64lite/Scripts/vice_x64.js: 1: //: Permission denied
/home/test/.jgamebase/C64lite/Scripts/vice_x64.js: 2: //: Permission denied
/home/test/.jgamebase/C64lite/Scripts/vice_x64.js: 3: Syntax error: "(" unexpected

Discussion

  • ablaszczyk

    ablaszczyk - 2021-06-01

    Cant edit... and this may be relevant:

    openjdk 15.0.2 2021-01-19
    OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.2+7)
    OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.2+7, mixed mode, sharing)
    
     
  • F. Gerbig

    F. Gerbig - 2021-06-05

    Hello ablaszczyk ,

    Since Java version 15 the JavaScript engine has been removed - that is the reason for the errors reported in "vice_x64.js".

    I bundled the GraalsJS engine from the GraalsVM and it now seems to be working with Java 8 to 16. I released jGameBase V71-1: please check and come back to me.

    Best regards,
    Frank

     
  • F. Gerbig

    F. Gerbig - 2021-06-05
    • status: open --> pending
    • assigned_to: F. Gerbig
     
  • ablaszczyk

    ablaszczyk - 2021-06-13

    @fgerbig
    Ok, some of platforms works perfectly fine (Amiga, SNES) - no more js issue.

    Some of them stil throws java.io.FileNotFoundException: (No such file or directory). And i'm betting that i've messed up some things trying to deal with js issue. So this is my fault.

    Than You for fix!!!

     
  • F. Gerbig

    F. Gerbig - 2021-07-18
    • status: pending --> closed-fixed
     

Anonymous
Anonymous

Add attachments
Cancel