• Post Reply Bookmark Topic Watch Topic
  • New Topic

game for Java  RSS feed

 
Dana Ucaed
Ranch Hand
Posts: 351
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for my bad English.

I tried to play the game for Java and in Microsoft Edge said that is missing plug-in.

I have installed on my computer Java SE 7.

What can I do?

Thanks
 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have to tell us more. Which game? Which plugin do you not have? What were the error messages? We can only help if we know all the details.

Moving to different forum; this one is for people to say hello in.
 
Randall Twede
Ranch Hand
Posts: 4683
8
Java Scala
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is just a guess but when you say plug-in I think browser. you may have java installed on your computer but not your browser. of course like Campbell said we don't know what game etc.
 
Norman Radder
Ranch Hand
Posts: 146
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens when you try the game in other browsers?  Look in the browser's Java Console for error messages.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37181
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you asking about the JavaRanch Rules Roundupgame by any chance?
 
Dana Ucaed
Ranch Hand
Posts: 351
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Are you asking about the JavaRanch Rules Roundupgame by any chance?


Yes, Is about this game.

In Chrome I have the same issue.

It don't say what plug-in is missing.

Sorry for my English.

 
Dana Ucaed
Ranch Hand
Posts: 351
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here:

http://stackoverflow.com/questions/31816839/how-do-i-enable-java-in-microsoft-edge-web-browser

Plug-in for Java is not supported in Edge.

I have jar file and I tried to run like a desktop application.

 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Consider installing a different browser, e.g. Chrome, Firefox.
If you have a .jar file, how are you trying to open it?
 
Dana Ucaed
Ranch Hand
Posts: 351
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Chrome there is the same problem as in Edge.

I want to use appletviewer but I don't know how will call jar file.

 
Norman Radder
Ranch Hand
Posts: 146
4
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Download or create an html file to execute the applet from the jar file.  Open the html file in appletviewer:
C:\Program Files\Java\jdk1.8.0_60\bin\appletviewer.exe D:\JavaDevelopment\Testing\Applet_Tests\AppletReadFile.html

The AppletReadFile.html file:
<HTML>
<HEAD><TITLE>Test Java reading a file</TITLE></HEAD>
<BODY>
<APPLET CODE=AppletReadFile archive=AppletReadFile.jar WIDTH=400 HEIGHT=400>
   <PARAM NAME=Filename VALUE="ForumQuestions5/TestCode.jaxa">
</APPLET>
<P>
getResourceAsStream() is case sensitive.
<BR>Try reading: ForumQuestions5/TestCode.jaxa and then change case
</HTML>

 
Dana Ucaed
Ranch Hand
Posts: 351
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I created a html file:



My html file is in the same directory with the game.jar.

I run appletviewer and :

HTTP:
java.lang.IllegalArgumentException: protocol = http host = null
        at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:170)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:927)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:851)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1092)
        at com.javaranch.common.HTTP.sendObject(HTTP.java:82)
        at com.javaranch.common.HTTP.sendE(HTTP.java:118)
        at com.javaranch.common.HTTP.send(HTTP.java:136)
        at com.javaranch.roundup.applets.QuizApplet.createPanels(QuizApplet.java:91)
        at com.javaranch.roundup.applets.QuizApplet.access$300(QuizApplet.java:17)
        at com.javaranch.roundup.applets.QuizApplet$MakePanels.run(QuizApplet.java:46)
Exception in thread "Thread-3" java.lang.RuntimeException: could not load StartData
        at com.javaranch.roundup.applets.QuizApplet.createPanels(QuizApplet.java:93)
        at com.javaranch.roundup.applets.QuizApplet.access$300(QuizApplet.java:17)
        at com.javaranch.roundup.applets.QuizApplet$MakePanels.run(QuizApplet.java:46)


What is the problem?

I observed that appletviewer run with url parameter.

Thank you for implication.
 
Norman Radder
Ranch Hand
Posts: 146
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you download the game.jar file?
 
Dana Ucaed
Ranch Hand
Posts: 351
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In one directory from my computer.

Must be on default directory of GlassFish server?
 
Norman Radder
Ranch Hand
Posts: 146
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What was the command line when did the test with appletviewer?

What does the GlassFish server have to do with the problem?

I thought you were trying to execute an applet that was in the game.jar file with the appletviewer program.
 
Norman Radder
Ranch Hand
Posts: 146
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, my question in post was unclear.

From what website did you download the game.jar file?  Or how did you get the game.jar file?
 
Dana Ucaed
Ranch Hand
Posts: 351
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded game.jar from javaranch.

It's about RoundUp game.

My command:

appletviewer C:\Users\andad\Downloads\CallAplet.html.

 
Norman Radder
Ranch Hand
Posts: 146
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the URL you used to download the game.jar file?
 
Dana Ucaed
Ranch Hand
Posts: 351
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
C:\Users\andad\Downloads\game\com\javaranch\roundup\applets>appletviewer CallAplet.html
load: class com.javaranch.roundup.applets.QuizApplet.class not found.
java.lang.ClassNotFoundException: com.javaranch.roundup.applets.QuizApplet.class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:219)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:152)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:633)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:793)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:722)
        at sun.applet.AppletPanel.run(AppletPanel.java:379)
        at java.lang.Thread.run(Thread.java:745)

It is strange that not find com.javaranch.roundup.applets.QuizApplet.class.

Class com.javaranch.roundup.applets.QuizApplet.class exists but ...
 
Norman Radder
Ranch Hand
Posts: 146
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

load: class com.javaranch.roundup.applets.QuizApplet.class not found.
java.lang.ClassNotFoundException: com.javaranch.roundup.applets.QuizApplet.class 

The name ending with .class is the name of a file, not the name of the class.
The class name is: com.javaranch.roundup.applets.QuizApplet

Try removing the .class when referring to the name of the class
 
Dana Ucaed
Ranch Hand
Posts: 351
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The link http://www.javaranch.com/game.jsp
 
Norman Radder
Ranch Hand
Posts: 146
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I do not see how to download the game.jar file from that page.

Can you explain how to download the game.jar file?
 
Dana Ucaed
Ranch Hand
Posts: 351
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found this https://www.java.com/en/download/help/firefox_java.xml.

I hope to resolve.
 
Norman Radder
Ranch Hand
Posts: 146
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope to resolve.

Ok.  Good luck.  Let us know what you find out and what you did to get the program to work.
 
Dana Ucaed
Ranch Hand
Posts: 351
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I installed another version of Java JRE.

However ,









    
RoundUpError.png
[Thumbnail for RoundUpError.png]
Error RoundUP IE11
 
Norman Radder
Ranch Hand
Posts: 146
4
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you need to change the security settings for java to allow the applet to execute.  On Windows' Control Panel there is a Java icon that will allow you to change the security settings.
You might also have to put the URL into the Exception Site list
 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We need more details before we can help.
Remember there was a dispute between Sun and MS a long time ago, so it will be unlikely that an MS browser will support Java®.
 
Dana Ucaed
Ranch Hand
Posts: 351
6
Netbeans IDE Oracle Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I resolved in IE11.

 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!