Go Back   SitePoint Forums > Forum Index > Program Your Site > Java and JSP
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Apr 21, 2002, 08:46   #1
davedibiase
SitePoint Guru
 
davedibiase's Avatar
 
Join Date: Aug 2001
Location: Toronto, Canada
Posts: 826
Talking Apache + Tomcat + Windows XP !!!!!!!!!!!!

I am on my windows XP Pro system atm, and I am having a big problem. I am just going through the Wrox Beginner JSP book (chapter 4), and I got stuck on JavaBeans.

Its giving me many errors. SO I was wondering if there was a problem with Tomcat and XP or Apache and XP.

These are my specs:
- WindowsXP Pro
- jakarta-tomcat-4.0.1
- jdk1.3.1_02

Well if it doesn't work on XP how can I make it work (what software can I get), I have another hard drive, so I am thinking of loading Win98 and changing the FAT32 file (I think). But I am not sure on doing that.

So basically two questions:
1. Can I get software to make tomcat run properly on WinXP?
2. How do I change the FAT file to choose between WinXP or Win98?

THanks for your help,

Dave...
davedibiase is offline   Reply With Quote
Old Apr 22, 2002, 04:22   #2
martm
SitePoint Zealot
 
Join Date: Feb 2002
Location: UK
Posts: 146
hi,

i'm assuming that if you've managed to work through chapters 1 - 3, then tomcat must be working OK on your system. otherwise your JSP pages would not be working.

can you be more specific about your error messages?

the first thing that springs to mind is that your java beans may not be in the place tomcat expects them to be.

or

the directory is not in the classpath.

loads of people have trouble on this one. have a look here for info on how to configure tomcat 4:

http://www.moreservlets.com/Using-Tomcat-4.html

hopefully you won't have to go down the dual-boot root.
martm is offline   Reply With Quote
Old Apr 22, 2002, 13:11   #3
davedibiase
SitePoint Guru
 
davedibiase's Avatar
 
Join Date: Aug 2001
Location: Toronto, Canada
Posts: 826
THANK YOU....

That documentation is good...thank you...

If I ever wanted to go into dual-boot who would I do it anyways?
davedibiase is offline   Reply With Quote
Old Apr 22, 2002, 13:34   #4
martm
SitePoint Zealot
 
Join Date: Feb 2002
Location: UK
Posts: 146
not a problem

dual booting. aah. (bear in mind i don't have XP)

the easy way is to install win98, then install winXP.

installing win98 after winXP has been installed is tricky. win98 needs the boot sector on the c: drive to be in FAT format...if XP is installed it generally won't be.

there has been some discussion of this in XP newgroups. if you do a google groups search you should turn up some info...and perhaps find a solution.

hope this helps.
martm is offline   Reply With Quote
Old Apr 22, 2002, 13:42   #5
seanf
Mlle. Ledoyen
silver trophy
 
seanf's Avatar
 
Join Date: Jan 2001
Location: UK
Posts: 7,312
You have to install 98 first

Sean
seanf is offline   Reply With Quote
Old Apr 22, 2002, 14:26   #6
davedibiase
SitePoint Guru
 
davedibiase's Avatar
 
Join Date: Aug 2001
Location: Toronto, Canada
Posts: 826
eug...

Naw its STILL not working -_-'...I have noticed a pattern in the compilation of my scripts. Whenever I try to compile the scripts through CMD (command prompt) it keeps giving me a blank compiled class called javac. -_-'

Very strange. Can't I just open my .java file in javac (drop and drag my .java file over the javac program (heh it works...but the JSP isn't picking it up).

If someone can...may you write 2 simple files (the .java file and the .jsp plus VERY SIMPLE instructions on how to make it work).

Thanks a TON!
davedibiase is offline   Reply With Quote
Old Apr 22, 2002, 14:30   #7
davedibiase
SitePoint Guru
 
davedibiase's Avatar
 
Join Date: Aug 2001
Location: Toronto, Canada
Posts: 826
also...

About the dual-boot...would it help if I said I had an external 40 GB hard-drive I can install win98 on?
davedibiase is offline   Reply With Quote
Old Apr 23, 2002, 10:01   #8
martm
SitePoint Zealot
 
Join Date: Feb 2002
Location: UK
Posts: 146
first things first then...
Quote:
Whenever I try to compile the scripts through CMD (command prompt) it keeps giving me a blank compiled class called javac
not sure i understand this...so bear with me for a moment.

have you added your jdk install directory to your system classpath.

eg. if you installed jdk to c:\jdk1.3, then you add c:\jdk1.3\bin to your classpath

to test can you compile a .java file on your c:\ drive

Code:
class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}
save to c:\ then:
c:\>javac Hello.java
c:\>java Hello

should work

to add jdk install dir to classpath (this is for win2k should be same for XP).

Start -> Control Panel -> System -> Advanced -> Environment Variables

select path from 'System Variables' list
click edit
add c:\jdk1.3\bin; to end of path //or whatever dir you installed jdk in
OK it all

let me know what happens - we can take it from there.

hope this is getting you somewhere sorry if this is all 'old news'

Last edited by martm; May 6, 2002 at 18:57.
martm is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 18:15.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved