• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

in Runtime enviroment online help can't display

 
Kuan Fan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody,
I'm prepare to upload. But when i test the program on Java Runtime, i found that the online help can't display. But when i test it on development version, it is no problem.
In the introduction.html, sun said"Your submission must run under a production (not development) version of Sun's Java 2 Platform."
I think the production version is the runtime enviroment. Am i right? what do you think?
The below source code is how to display the online documet:
URL helpURL=new URL(documentationURL);
JEditorPane editorPane = new JEditorPane();
editorPane.setContentType("text/html");
editorPane.setPage( helpURL );
editorPane.setEditable(false);
editorPane.addHyperlinkListener( this );

JScrollPane helpScrollPane = new JScrollPane(editorPane);

Container contentPane = menuMain.getContentPane();
contentPane.removeAll();
contentPane.add( helpScrollPane );
menuMain.show();
Any comments please! thanks!
stephen
 
Kuan Fan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops? can anybody help? It's urgent. I wait this message to upload my assignment.
thanks
stephen
 
John Dale
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might try debugging, or analyzing any generated exceptions.
 
Kuan Fan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi John,
I debugged it but it didn't throw any exceptions.
I'm really confused.
I have no idead about whether i upload it?
any suggestion?
stephen
 
Kuan Fan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the production version is the runtime enviroment.

Just now i look up the forum carefully. I found that i maybe make a mistake. I mess the production version. The production version should be a product release of sun. Actually j2sdk-1_3_1_02-win is a production version. It includes the Runtime enviroment.
So now i use j2sdk-1_3_1_02-win and the above problem was gone.
Am i right?
Hope it's helpful to anyone else who has the same question.
stephen
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic