facebook

Another system properties passing problem [closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #201974 Reply

    Brian Lee
    Member

    First I’d like to say that your product is awesome with an awesome price tag

    Anyways I’ve read the topic about passing system properties with Tomcat through the JDK preference page….

    “Well, placing them on the Tomcat > JDK preference page in the Optional VM Arguments box, one per line like:
    -Dprop1=value
    -Dprop2=value2

    Should do the trick.”

    well when I try passing

    “-DTOMCAT_HOME=c:\\Program Files\\Apache Group\\Tomcat 4.1”
    or
    “-DTOMCAT_HOME=/Program Files/Apache Group/Tomcat 4.1”

    I get a
    “Could not find main class. Program will exit.” and
    “A configuration error occurred during startup. Please verify the preference field with the prompt: java.lang.NoClassDefFoundError: Files\\Apache exception in thread ‘main’ ”
    when I try to start Tomcat 4.1.

    What am I doing wrong and how should I resolve this?

    I’m running on Win XP, JSDK 1.4.2_03, Eclipse M6 with no other plugins aside from MyEclipse

    #201977 Reply

    Riyad Kalla
    Member

    I’m still trying to get this to work, but I would ask that you note the 2 “notes” right under the JDK settings… namely the second one 😉

    Summary: “Avoid using -cp -classpath or -D arguments…”

    #202025 Reply

    Brian Lee
    Member

    hmmm so how else could I pass system properties?

    #202026 Reply

    Riyad Kalla
    Member

    I have been playing with quite a few combinations and noticed that it always seems to complain about the “5/0” so I figured the version was throwing it off, so I installed Tomcat to “C:\Java\Tomcat” and did a vm arg of “-DTOMCAT_HOME=C:\Java\Tomcat” and everything worked beautifuly. I imagine the space is what was screwing it up so maybe installed tomcat to “Tomcat5” or “Tomcat5.0” might fix it.

    I hope this helps.

    #202027 Reply

    Brian Lee
    Member

    hehehe Awesome man!! that space in between dir name problem is annoying
    much appreciated for the help

    #202029 Reply

    Riyad Kalla
    Member

    No problem I’m glad we got your working!

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Another system properties passing problem [closed]

You must be logged in to post in the forum log in