JAVA_HOME running tomcat

hi!
i recently downloaded the Java Web Services Developer pack. the installation went fine, howeve when i try to run tomcat it gives me
Bad command or file name
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
i have in my autoexec
SET PATH=c:\"program files"\j2sdk\bin;c:\windows;c:\windows\command
SET JAVA_HOME=c:\"program files"\j2sdk
on a friend's recommendation i have also tried
SET JAVA_HOME=c:\"program files"\j2sdk\jre
could someone help please.
thanks

my sdk is in c:\progra~1\j2sdk
i have tried
SET JAVA_HOME=c:\PROGRA~1\j2sdk
SET PATH=%JAVA_HOME%;c:\windows;c:\windows\command
when i then double click startup.bat, this gives me
Bad command or file name
Out of environment space
Out of environment space
The JWSDP_HOME environment variable is not defined
This environment variable is needed to run this program
File not found
to see if JWSDP_HOME variable is defined
i then did the right-click properties thing and changed memory to 2048 and then run the shortcut it placed
this gave me
Bad command or file name
Bad command or file name
i then did,
SET JAVA_HOME=c:\PROGRA~1\j2sdk
SET JWSDP_HOME=c:\PROGRA~1\jwsdp
SET PATH=%JWSDP_HOME%;%JAVA_HOME%;c:\windows;c:\windows\command
this gave me,
double clicking startup.bat
Bad command or file name
Out of environment space
Out of environment space
The JWSDP_HOME environment variable is not defined
This environment variable is needed to run this program
File not found
to see if JWSDP_HOME variable is defined
double clicking startup.pif
Bad command or file name
Bad command or file name
and excecuting startup.bat from commandline,
Bad command or file name
Out of environment space
Error: com.sun.jwsdp.launcher.JWSDPLaunchFilter filter class encountered a probl
em
and executing startup.pif from command line
Bad command or file name
i'm at my wits end now. could some one please help. my sdk and jwsdp are installed in the right directories.
thanks

Similar Messages

  • Running Tomcat 4.0.1 on RH7.0

    I try to run Tomcat 4.0.1 on RH7.0,
    [root@backup bin]# ./startup.sh
    but I get this error,
    Guessing CATALINA_HOME from catalina.sh to ./..
    Setting CATALINA_HOME to ./..
    You must set JAVA_HOME to point at your Java Development Kit installation
    then I set JAVA_HOME, with this command "set JAVA_HOME=/jdk1.3"
    and I still get the same error....
    Any idea what is happening?
    /snricek

    I've been execute the command to set JAVA_HOME & CATALINA_HOME.
    This is the comment I've get, after I execute "startup.sh" :
    Using CLASSPATH: /jakarta-tomcat-4.0.1/bin/bootstrap.jar:/jdk1.3/lib/tools.jar
    Using CATALINA_BASE: /jakarta-tomcat-4.0.1
    Using CATALINA_HOME: /jakarta-tomcat-4.0.1
    Using JAVA_HOME: /jdk1.3
    and I get nothing, when I tried to show an index.html:
    http://myserver:8080/index.html
    should I configure "server.xml" file ?

  • Running Tomcat from a java program

    I'm writing a program that shall run Tomcat from the program itself. The eacy way would be to just call org.apache.catalina.startup.Bootstrap.main(String[]) in a new thread, but that gives only a little information to the program about the state of the server. Actually I would only know when the server is told to start (just before the main method is called), and when the server had stopped (just after the main method).
    I have browsed the Catalina API documentation and source code for hours, but the only solution I have gotten, writes the standard startup text:
    Starting service Tomcat-Standalone
    Apache Tomcat/4.0.4
    Starting service Tomcat-Apache
    Apache Tomcat/4.0.4If I could get that to work, I would could add a LifecycleListener, and get all the info. I need.
    The essence of the code I use is this:
    CatalinaService cs = new org.apache.catalina.startup.CatalinaService();
    Server s = new StandardServer();
    StandardService stdService = new org.apache.catalina.core.StandardService();
    s.addService(stdService);
    cs.setServer(s);
    cs.process(new String[]{"start"});but the following also produce a simmilar result:
    BootstrapService b = new org.apache.catalina.startup.BootstrapService();
    b.load(new TomcatLoader(),null);
    b.start();A dirty solution would be to copy the code form Bootstrap.main(String[]) and add a few lines, but I really dosn't like that. It would be a nightmare to maintain, primiarry because I would loose the functionallity of Catalinas class loader (where a lof of classes is loaded).
    Does anybody know how I can get Tomcat to run, so I still get my info. and don't use any dirty solutions?

    Check out the main method in the source code of class org.apache.catalina.startup.Embedded
    It should help you.
    Also check out this article
    http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html

  • Problems running tomcat on win XP

    Hi!
    I've just downloaded and installed the JWSDP on Windows XP Professional, but when I try to use Tomcat it starts but then terminates instantly. Can anyone help me with this?
    thanks, Ylva

    Are you sure its terminating? You will not get an open window when you run tomcat, just a minimised toolbar window.
    If it is definitely terminating, have a look at the log file to see what error (if any) is produced - JWSDP_HOME\logs\catalina.out
    Also make sure that you are not running any other application which might be using port 8080.
    //Daniel.

  • Java.lang.UnsatisfiedLinkError: running tomcat on java headless?

    Dear all,
    I'm using the iText library to generate pdfs from a database on the fly. Whenever I use some of it's features that require simple things like java.awt.Color, I get an java.lang.UnsatisfiedLinkError as shown:
    java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-1.5.0-sun-1.5.0.18/jre/lib/amd64/libawt.so: libmlib_image.so: cannot open shared object file: No such file or directory
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
            at java.lang.Runtime.loadLibrary0(Runtime.java:822)
            at java.lang.System.loadLibrary(System.java:993)
            at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.awt.Toolkit.loadLibraries(Toolkit.java:1509)
            at java.awt.Toolkit.<clinit>(Toolkit.java:1530)
            at java.awt.Color.<clinit>(Color.java:250)
            at tablereport.processRequest(tablereport.java:55)
            at tablereport.doGet(tablereport.java:130)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
            at java.lang.Thread.run(Thread.java:595)After some research and verifying that libawt.so physically exists I read somewhere that whenever java is installed no a linux box without x (in my case it's a remote vps) java omits certain graphics related libraries like AWT (naturally).
    I also read that you can run java headless to avoid the dependencies to X. Now is there a way to run tomcat (or add variables to tomcat's startup.sh) to avoid having these dependencies?
    Thanks for your help,
    William

    [Googling the exception|http://www.google.com/search?q=java.lang.UnsatisfiedLinkError+at+java.awt.Color.%3Cclinit%3E%28Color.java%3A250%29+tomcat] learns me it's a bug in the mentioned Tomcat + JDK combo.
    Upgrade to the latest if possible.

  • Re: Using already running Tomcat server for development.

    Hi Nick,
    Yes, you can use existing Tomcat Server for debugging app developed with
    NitroX. And you can refer to Help > Help Contents > NitroX User Guide >
    NitroX Tour > Running and debugging the application.
    We do support Tomcat 4.0.x to Tomcat 5.0.x. If you need any further
    assistance please get back to us.
    Thanks
    M7 Support
    "Nick Mulder" <[email protected]> wrote in message
    news:41d9f379$[email protected]..
    Sorry if this has been covered anywhere else.Just wondering if you can use an existing tomcat server for debugging
    webapps being developed in NitroX. I have a non dedicated server a
    development server. Up until purchasing NitroX I have been using ant build
    files to compile and re-deploy my apps into the running tomcat server.
    Just wondering if I can do something similar thru NitroX and Eclipse.
    Forgive me if I am missing something obvious, but I am new to eclipse.
    Thanks,
    Nick Mulder

    Take a look at these links: http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/
    http://www.keyboardsamurais.de/2004/01/15/tomcat_tutorial_helloworld_for_complete_fools_-_english/
    http://www-128.ibm.com/developerworks/opensource/library/os-ectom/?ca=dgr-lnxw16EclipsTomcat
    I've found going through tutorials is a proven, quick way of getting up to speed with new tools and configurations.
    HTH,
    James

  • Do I need to redeploy and run tomcat every time I�m changing something?

    Guys,
    I�m using MyEclipse as the IDE to develop struts application. I am a newbie to this topic (but doing just fine)
    Anyway, I do this:
    I write my code, deploy it, run Tomcat and than I click the site to see the results.
    sometime I am changing the words or the code and than want to see the changes, for this, and this is the point I think I do wrong, I STOP Tomcat, Redeploy, START tomcat and refer back to the site (imagine the how long it takes)
    Is there a better way only to redeploy so everything will take effect immediately?
    Why when I change something in the AppliatinResources it doesn't kick in?
    Thanks

    I use MyEclipse and Tomcat and changes are reflected within a few seconds after making changes without redeploying.
    I have noticed that when adding servlets and modifying servlets, it takes a few seconds for changes to show while the context reloads.

  • Using already running Tomcat server for development.

    Sorry if this has been covered anywhere else.
    Just wondering if you can use an existing tomcat server for debugging
    webapps being developed in NitroX. I have a non dedicated server a
    development server. Up until purchasing NitroX I have been using ant build
    files to compile and re-deploy my apps into the running tomcat server. Just
    wondering if I can do something similar thru NitroX and Eclipse. Forgive me
    if I am missing something obvious, but I am new to eclipse.
    Thanks,
    Nick Mulder

    Take a look at these links: http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/
    http://www.keyboardsamurais.de/2004/01/15/tomcat_tutorial_helloworld_for_complete_fools_-_english/
    http://www-128.ibm.com/developerworks/opensource/library/os-ectom/?ca=dgr-lnxw16EclipsTomcat
    I've found going through tutorials is a proven, quick way of getting up to speed with new tools and configurations.
    HTH,
    James

  • Eroor in eclipse when i have run TOMCAT in debuge mode web service debuging

    hello all,
    i have a serious problem with debug my web service. I set local variable in eclipse (-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000). And now if i run TOMCAT in normal mode all worked fine and i run remote java application fine, but if i run TOMCAT in debug mode, eclipse in console return error:
    "Error occurred during initialization of VM
    agent library failed to init: jdwp
    ERROR: Cannot load this JVM TI agent twice, check your java command line for duplicate jdwp options."
    If anyone have this problem please tell me how to resolved it.
    Thank for help.

    Eclipse is kind of a competing product so this is not the best place to ask the question. With that most will be nice enough to lend a hand. I suggest ensuring that all other instances of tomcat are stopped then try again. In the Debug perspective ensure there are no servers running with the same name as the one you are attempting to use. If all else fails ensure there are no tomcat process running if they are kill them. Finally, if you cant get it to work reboot. If still no good the Eclipse might be a better place to go.

  • Running Tomcat as a service

    I have two questions about running Tomcat as a service.
    First, when I try to install and start tomcat 3.3.2 with the java sdk 1.4.0 using jk_nt_service, the service won't start. When I execute the following command, jk_nt_service -S Tomcat-3.3-2-Dev, I get a response of Tomcat-3.3.2-Dev failed to start. When I execute the following command, net start Tomcat-3.3.2-Dev, I get a system error 1067 response. Does anyone know how to get around this error?
    Second, if we try to run Tomcat 4.1.27 as a service, we get very slow response compared to running startup.bat in the bin directory. Does anyone know why this is and what could be done to improve the performance?
    Jim Field

    I don't know the answer to the first question.
    Regarding the second one: when you say "slow response", do you mean for every request you send to the service compared to sending the same request to Tomcat started with startup.bat, or are you referring to just starting the service?
    Have you measured the response time for a number of requests to both the service and script-started Tomcat, or is this a subjective judgement? MOD

  • JSP problem when running Tomcat in Eclipse

    Hello,
    Eclipse newbie here.
    I just started using Eclipse and I have installed the Tomcat plugin. When I run Tomcat within Eclipse, http://localhost:8080 works fine, but when I tried to access a JSP that I've created, I'm getting this error:
    HTTP Status 404 - /JSPDemo.jsp
    type Status report
    message /JSPDemo.jsp
    description The requested resource (/JSPDemo.jsp) is not available.
    Using Eclipse version 3.1.2
    Tomcat Plugin = sysdeo 3.1
    Tomcat version 5.0.28
    JDK + JRE = 1.4.2_08
    I was just following this tutorial:
    http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/
    Thanks in advance.

    why not use Web Tools Project of Eclipse, it comes with all plugins necessary for J2EE and Web development
    http://www.eclipse.org/webtools/
    it's much easier to use

  • How to run tomcat inside eclipse

    hello
    I try to run tomcat inside eclipse with sysdo ... plugin
    info.
    eclipse 3.0
    tomcat 5.0
    J2sdk 6.0
    I become an Exception
    SEVERE: Error initializing endpoint
    java.net.SocketException: Invalid argument: listen failed
         at java.net.PlainSocketImpl.socketListen(Native Method)
         at java.net.PlainSocketImpl.listen(Unknown Source)
         at java.net.ServerSocket.bind(Unknown Source)
         at java.net.ServerSocket.<init>(Unknown Source)
         at java.net.ServerSocket.<init>(Unknown Source)
         at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:49)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:259)
         at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)
         at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1429)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:609)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2384)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
    22-Jun-2006 11:29:23 org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException:  Protocol handler initialization failed: java.net.SocketException: Invalid argument: listen failed
         at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1431)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:609)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2384)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:507)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:528)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)I run tomcat outside eclipse as Win service it works fine
    what is wrong

    please no body in this world to help me ????

  • Trouble with running tomcat/eclipse

    I am using eclipse/tomcat. Every time I run tomcat inside eclipse it shows me that war deployed but it doesn't. I have to manually copy it under webapp. I have appropriate login

    are u using and IDE stuff???
    eclipse is inteligent enough to do the work for you.

  • Trouble running tomcat

    Hi,
    I have, up until now, been running tomcat 5.xx without any problems, however, when I tried to run it recently, my system returned an error:
    " The system cannot find the file -Djava .endorsed.dirs=."
    I was hoping someone out there might know what the problem may be.
    Thanks

    Did you modify any of your startup scripts in the bin directory or did you recently try to change any environment variables related to Tomcat such as JAVA_OPTS, CATALINA_OPTS and several others?
    This really sounds like your batch or shell file (you don't mention the O/S) isn't working the way you want. This could be because of environment variables or it could be that the script has been modified.

  • Why cannot run tomcat after installing j2ee

    I use tomcat 4.0, and it was working properly before. after I installed J2ee 1.4, it doesnt work when running startup.bat. I dont know what is going on. Can any body encounter this and tell me how to solve it please. thanx

    It's possible that both Tomcat and the Application Server are configured to use the same port (probably 8080). If the Application Server is running, Tomcat won't be able to bind to port 8080 and will throw an error.
    Check that the Application Server is shut down before starting Tomcat.
    -Ian Evans

Maybe you are looking for

  • Would PSElements work with my Graphics Card?

    I have Photoshop CS6 on a WIndows XP and have had it for the past few months and it's been working fine. Then the other week I tried saving an Animation for web and an error came up say 'The operation could not be completed'. I posted this to an Adob

  • IOS RD Client Remote Resources "Failed to Parse RDP Configuration"

    I encounter the error below when attempting to connect to Remote Resources. This worked perfectly yesterday but hasn't at all today. I removed and added the RemoteApp entry on the 2008 R2 server but continue to encounter this error. Any help is great

  • Af:inputFile component does not function

    Hi, I have tried to use <af:inputFile > component in my project, and put the component in a <af:form usesUpload="true"> tag, but couldn't manage to make it work. What could be the reason? Any suggestions??? It will be highly appriciated if anyone cou

  • On YouTube load, site leaves and script appears with no way to use.

    Version 6.0.1 and 6.0.2 on iMac with v 10.6.8 OS. Youtube site, on load, flashes, disappears and this message appears: "A new version of the YouTube script for Windows Media Player is available. Installing these updates is HIGHLY RECOMMENDED! Do you

  • Connection MDM Sever

    Hi Expect I am trying to do POC. SAP MDM to PI and PI to SAP MDM Please let me know what all connections i need to create Do i need to create port in PI also?? if yes what type of port... please provide any documents if any. regards Osman Abdul Aziz