W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 2003

RE: about compiledPage Frame and html/java

From: Gregory Read <gread@mqsoftware.com>
Date: Wed, 29 Oct 2003 03:15:48 -0600
Message-ID: <A5D64E0602D4F54A94D0D8C983F47138071F91@mailservermn.mqsoftware.com>
To: "Red K" <redkresearch@yahoo.com.sg>, <www-jigsaw@w3.org>
Hi,
 
I think this might be related to a change in the javac main() definition in jdk versions 1.4 and upwards (I think it has been deprecated - why? how? I dont understand).
Have you tried this jigsaw configuration on a machine with jdk1.3.x installed instead?  
As far as I've found, if you need to, both jdks can be installed simultanously, you just need to set the environment variables correctly for each application to get them to co-exist.
 
I could be wrong about the reason for your error, but it's something possibly to try.
http://archives.real-time.com/pipermail/cocoon-devel/2001-July/009809.html

 
regards,
Greg
 

	-----Original Message----- 
	From: Red K [mailto:redkresearch@yahoo.com.sg] 
	Sent: Wed 29-Oct-03 2:58 AM 
	To: www-jigsaw@w3.org 
	Cc: 
	Subject: about compiledPage Frame and html/java
	
	


	Hi,
	
	I want to configure one java html resource on Jiasaw.
	I thus create one Jhtml file as the follows, which is
	copied from jigsaw user guide:
	----------------------------------------------
	<html>
	 <head>
	     <title>Page Compilation Test</title>
	 </head>
	 <body>
	     <h1>Page Compilation Test</h1>
	     <java>
	       out.println ("<p>Page Compilation test");
	     </java>
	     <h1>Display a list</h1>
	     <ul>
	       <java>
	         for (int i = 1; i < 10; i++) {
	           out.println ("<li> item " + i);
	         }
	       </java>
	     </ul>
	 </body>
	</html>
	------------------------------------------------
	Then I create one FileResource that is associated with
	the file.
	Then I configure one PageCompileFrame to this
	resource.
	Then I try to request this resource from my brower.
	
	When the server receives the request, it then begin
	dump out some information in the command screen as the
	follows:
	------------------------------------------------
	java.lang.NoClassDefFoundError: sun/tools/javac/Main
	        at
	org.w3c.jigsaw.pagecompile.JDKCompiler.compile(JDKCompiler.java:32)
	        at
	org.w3c.jigsaw.pagecompile.PageCompileFrame.generateFrame(PageCompileFrame.java:612)
	        at
	org.w3c.jigsaw.pagecompile.PageCompileFrame.registerNewGeneratedFrame(PageCompileFrame.java:647)
	        at
	org.w3c.jigsaw.pagecompile.PageCompileFrame.checkContent(PageCompileFrame.java:665)
	        at
	org.w3c.jigsaw.pagecompile.PageCompileFrame.perform(PageCompileFrame.java:683)
	        at
	org.w3c.tools.resources.FramedResource.performFrames(FramedResource.java:646)
	        at
	org.w3c.tools.resources.FramedResource.perform(FramedResource.java:664)
	        at
	org.w3c.jigsaw.http.httpd.perform(httpd.java:1688)
	        at
	org.w3c.jigsaw.http.Client.processRequest(Client.java:400)
	        at
	org.w3c.jigsaw.http.Client.startConnection(Client.java:530)
	        at
	org.w3c.jigsaw.http.socket.SocketClient.run(SocketClient.java:119)
	        at
	org.w3c.util.CachedThread.run(ThreadCache.java:86)
	------------------------------------------------
	Then my broswer receives the response that says the
	page cannot be displayed
	
	Could you please offer me any advice?
	
	Thank you very much!
	
	Red K
	
	
	__________________________________________________
	Do You Yahoo!?
	Faster. Easier. Bingo.
	http://sg.search.yahoo.com

	
	

Received on Wednesday, 29 October 2003 04:15:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:36 GMT