Michael Jay

Greenhorn
+ Follow
since Jan 14, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michael Jay

Just to let you know that I tried your method Nidheesh and it seems to be working now.

At least now this can be used as future reference.

Thanks again.
19 years ago
Cheers Guys.

I'm gonna give this a try and will inform you of the outcome.

All the best.
19 years ago
Hello All.

With already a couple of years experience in Java for the desktop. I am trying out J2ME.

I've compiled my first program which should simply say "Hello" but in the process of launching the file, a ClassNotFoundException is thrown. I know the nature of the error but any idea what's causing this is, because I've checked the directory structure and it all seems intact e.g. the .class file is in the "class" folder, likewise the .java file is in the "src" folder. Is this a bug issue. Have any of you experienced this.

I would be grateful if you could demystify me on the aforementioned.

Thanks in advance.
19 years ago
No, by clicking Settings > Control Panel > System > Advanced > Environment Variables. This only applies to Windows 2000 or later. Hope this helps.
Cheers again.

Mike.
20 years ago
Hi Bear.
The o/s that I'm running is Windows 2000. I'm running the latest version of Tomcat which is ver 5, I believe. The version that came with JWSDP1.3 pack downloaded from Sun's website.
As for the env variable I thought that would have been standard to use the JAVA_HOME format. I saw this same format referenced in one of the configuration files in the tomcat directory.
Hope this might give you a clue.
Cheers.
Mike.
20 years ago
Hi to all members.
Wonder if you could help.
I've encountered a problem below when I try to compile a simple JSP file i.e. add the filename (sample shown at bottom of this message) to the localhost:8080 address. Have any of you had this problem before and solved it. If so I would be very interested to know how it's done coz I'm at wit's end at the moment.
Btw. I did follow the suggestion of copying the tools.jar file into the relevant folders and created a system environment variable of JAVA_HOME but that doesn't seem to make any difference.
I'd be truly grateful if any of you could demystify me on this matter. Your cooperation would be highly appreciated.
Thanks in advance ;-)
Martian.
SCJP
BSc.
=======================================================================
The Exception Report.
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
org.apache.jasper.JasperException

=======================================================================
Sample Code called SineTable.jsp
<HTML>
<HEAD>
<TITLE> The sine data table </TITLE>
<BODY>
<%! int angles[] = {0, 30, 45, 75, 90}; %>
<TABLE BORDER="2" ALIGN="center">
<TH>Angle</TH><TH>Sine of angle</TH>
<% for (int i=0; i<5; i++) { %>
<TR><TD><%= angles[i]</TD><TD><%= Math.sin(Math.toRadians(angle[i]))%></TR>
<% } // end for loop %>
</TABLE>
</BODY>
</HTML>

20 years ago
Hi to all members.
Wonder if you could help.
I've encountered a problem below when I try to compile a simple JSP file i.e. add the filename (sample shown at bottom of this message) to the localhost:8080 address. Have any of you had this problem before and solved it. If so I would be very interested to know how it's done coz I'm at wit's end at the moment.
Btw. I did follow the suggestion of copying the tools.jar file into the relevant folders and created a system environment variable of JAVA_HOME but that doesn't seem to make any difference.
I'd be truly grateful if any of you could demystify me on this matter. Your cooperation would be highly appreciated.
Thanks in advance ;-)
Martian.
SCJP
BSc.
=======================================================================
The Exception Report.
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
If using an alternate Java compiler, please check its installation and access path.
org.apache.jasper.JasperException

=======================================================================
Sample Code called SineTable.jsp
<HTML>
<HEAD>
<TITLE> The sine data table </TITLE>
<BODY>
<%! int angles[] = {0, 30, 45, 75, 90}; %>
<TABLE BORDER="2" ALIGN="center">
<TH>Angle</TH><TH>Sine of angle</TH>
<% for (int i=0; i<5; i++) { %>
<TR><TD><%= angles[i]</TD><TD><%= Math.sin(Math.toRadians(angle[i]))%></TR>
<% } // end for loop %>
</TABLE>
</BODY>
</HTML>

20 years ago
JSP