Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / January 2007

Tip: Looking for answers? Try searching our database.

(j2ee n00b) Can I just compile from cmd like j2se?

Thread view: 
trippy - 13 Jan 2007 23:00 GMT
I just want to make a test servlet and run it, I'm not looking to make
some big package or anything. I've looked at the documentation for the
EE and to just run their test package, you need ant or some other IDE. I
just want to compile 1 test class. Can I just do that? If so, how?

Signature

trippy
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM

NP: "The American Way" -- Sacred Reich

"Now, technology's getting better all the time and that's fine,
but most of the time all you need is a stick of gum, a pocketknife,
and a smile."

-- Robert Redford "Spy Game"

EricF - 14 Jan 2007 04:54 GMT
>I just want to make a test servlet and run it, I'm not looking to make
>some big package or anything. I've looked at the documentation for the
>EE and to just run their test package, you need ant or some other IDE. I
>just want to compile 1 test class. Can I just do that? If so, how?

You don't need ant or an ide to compile a servlet. You just need to get the
classpath right.

Take a look at tomcat and it's examples.

Eric
trippy - 14 Jan 2007 19:43 GMT
> >I just want to make a test servlet and run it, I'm not looking to make
> >some big package or anything. I've looked at the documentation for the
[quoted text clipped - 7 lines]
>
> Eric

Okay, let me ask the question in a different way then.

In Standard edition, you can compile a class using javac and then it
generates a class file. I would like to do the same thing using j2EE
only, without tomcat or some other server being involved. Just j2ee and
a command line. I'm not worried about deployment, just the compiling
itself. (Yes, I am aware that without deployment, no one will see it.)
So if it is a classpath issue, like you say, I'm unsure what classpath
will point the j2ee so I can compile a test servlet.

Signature

trippy
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM

NP: "The American Way" -- Sacred Reich

"Now, technology's getting better all the time and that's fine,
but most of the time all you need is a stick of gum, a pocketknife,
and a smile."

-- Robert Redford "Spy Game"



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.