Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 12 of 12

Thread: Java based game problem

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java based game problem

    At first is to say that I am german and my english is not good, but I am open for corrections. Moreover is my question not about Java programming but about a problem with a java based game.

    Since a few weeks i receive windows reports with the text: "Could not create the Java virtual machine". That were not disturbing, but now i would like to play a game that based on Java, but every time I would start it, the message come and the game do not start. The game called "Edna and Harvey: The Breakout" (German: Edna bricht aus) and is developed by a german game studio called "Daedalic entertainment".


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,824
    My Mood
    Hungover
    Thanks
    147
    Thanked 697 Times in 595 Posts

    Default Re: Java based game problem

    Sounds like you don't have a JRE installed. You can get it here: java.com: Java + You

    If that doesn't fix your problem, I recommend you remove anything Java from your computer (on windows, you go to control panel > add/remove programs and just uninstall any JREs (Java Runtime Environment) or JDKs (Java Development Kit) you see there,then reinstall them by going to the above link.

    Hope that helps!
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  3. #3
    Junior Member
    Join Date
    Jan 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java based game problem

    I had tryed this often but it does not works.
    Porbably there are entries in the registry, but i do not trust me to look there because I do not have experience for that...
    Last edited by Dodax; January 19th, 2012 at 10:46 AM.

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,824
    My Mood
    Hungover
    Thanks
    147
    Thanked 697 Times in 595 Posts

    Default Re: Java based game problem

    Quote Originally Posted by Dodax View Post
    I had tryed this often but it does not works.
    Porbably there are entries in the registry, but i do not trust me to look there because I do not have experience for that...
    I'm not really sure what that means, or what we could do about it. Have you tried uninstalling the game and reinstalling it?

    I suggest you contact the makers of the game to see if they can help you.
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  5. #5
    Junior Member
    Join Date
    Jan 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java based game problem

    Thank you for your help. I solved the problem with a tip from the forum of the game.

  6. #6
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,824
    My Mood
    Hungover
    Thanks
    147
    Thanked 697 Times in 595 Posts

    Default Re: Java based game problem

    Quote Originally Posted by Dodax View Post
    Thank you for your help. I solved the problem with a tip from the forum of the game.
    No problem. Just out of curiosity, what was the fix?
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  7. #7
    Junior Member
    Join Date
    Jan 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java based game problem

    I remove the folder "jre_1.6.0_06" from the game directory and then i copie the Java folder from my computer in it. Then i put the folder "launch4j-tmp" from the removed folder to the new Java\bin folder and renamed the new Java folder to "jre_1.6.0_06".

  8. #8
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,824
    My Mood
    Hungover
    Thanks
    147
    Thanked 697 Times in 595 Posts

    Default Re: Java based game problem

    Quote Originally Posted by Dodax View Post
    I remove the folder "jre_1.6.0_06" from the game directory and then i copie the Java folder from my computer in it. Then i put the folder "launch4j-tmp" from the removed folder to the new Java\bin folder and renamed the new Java folder to "jre_1.6.0_06".
    Okay, cool. Glad you got it sorted out.
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  9. #9
    Junior Member
    Join Date
    Dec 2014
    Posts
    1
    My Mood
    Grumpy
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java based game problem

    Quote Originally Posted by Dodax View Post
    I remove the folder "jre_1.6.0_06" from the game directory and then i copie the Java folder from my computer in it. Then i put the folder "launch4j-tmp" from the removed folder to the new Java\bin folder and renamed the new Java folder to "jre_1.6.0_06".
    I realize this thread is relatively old, but I'm having the same issue with the same game, and although I'm trying the process you described to fix the issue, I don't know where to go to find the Java folder from my computer. Much less is that there's no file in the game's directory named "jre_1.6.0_06".

    Odd thing, though, whenever I launch the game skipping the launcher window by just clicking the application itself in the game's directory, it works. So I could totally just start launching it like this from now on, but I'd much rather not have to delve into the directory every time I want to play the game.

  10. #10
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    23,969
    Thanks
    62
    Thanked 2,544 Times in 2,514 Posts

    Default Re: Java based game problem

    Try creating a shortcut that you can place on the desk top or wherever you'd like.
    If you don't understand my answer, don't ignore it, ask a question.

  11. #11
    Junior Member
    Join Date
    Jan 2015
    Location
    Dorpsstraat 205, 3925 KB Scherpenzeel KVK nummer: 61103179 | BTW nummer: NL143812427B03
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java based game problem

    The Java language is normally the first language that any programmer learns. Since many different programmers are interested in developing their own game, many programmers will use the Java language to create a simple one. There are many different Java game, You can unleash the magic of 3D games by downloading Java games on your handset. You would get superb benefits like free talk time apart from some of the coolest features like messaging, free downloading of loads of information or your favorite Java games. Users can personalize this cell phone by downloading mobile games, ringtones, wallpaper and more.

  12. #12

    Default Re: Java based game problem

    When that happens, the easiest solution that has been tested on both Windows XP, Windows 7 and Windows 8 is:


    Open the Control Panel
    Go to System
    Go to Advanced Systems Properties
    Then Environment Variables
    In System Variables, click Add
    New Variable Name: _JAVA_OPTIONS
    New Variable Value: -Xmx512M
    Click OK


    That's it, your Java program should now be able to execute properly.
    For those interested, Java -Xmx/s is the configuration parameter that control the amount of memory Java uses.

    Xmx sets the maximum heap memory size
    Xms sets the minimum heap memory size

Similar Threads

  1. Java based games..
    By imsuperman05 in forum Java Theory & Questions
    Replies: 1
    Last Post: January 12th, 2012, 03:09 PM
  2. Java Game Launching Problem
    By PaulMoretti in forum What's Wrong With My Code?
    Replies: 5
    Last Post: August 18th, 2011, 12:41 PM
  3. [SOLVED] Turn Based Game run by Commands
    By EggoH1992 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: August 11th, 2011, 10:23 AM
  4. JDBCrealm FORM based problem. But BASIC working perfectly alright!
    By salman4u in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: January 27th, 2010, 08:06 PM
  5. Exception-Based Problem
    By Hax007 in forum Exceptions
    Replies: 1
    Last Post: December 10th, 2009, 02:53 AM