Book a Demo

Author Topic: Debug Java hangs  (Read 3341 times)

vidafo

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Debug Java hangs
« on: November 30, 2005, 12:33:48 pm »
Hello

Thanks to this forum I managed to compile and run a very simple Java Class. Just main method and a simple System.out.println.

When I try to debug this 'application' EA hangs. -> No response in Windows Taskmanager. Even waiting for 5 or 10 minutes ends in the same result.

I've installed the jdk on C:\jdk1.5.0_03 and also an older Version on C:\j2sdk1.4.2_03.

Running java -version on dos prompt results in "1.5.0_03".

Here is my Build, Test, Execute Script contents:

Name: EA Test
Directory: D:\projects\TestEA6.0\Software

Build CMD
c:\jdk1.5.0_03\bin\javac -g -sourcepath src -d D:\projects\TestEA6.0\Software\bin src\ch\swisslife\prov\dialog\*.java

Capture Output yes, Parser: Java SDK


Test CMD is empty


Run CMD
Run: java -cp bin ch.swisslife.prov.dialog.Test
Debug: ch.swisslife.prov.dialog.Test
Vars: jre=C:\jdk1.5.0_03
Use Debugger: Java


Deploy CMD is empty


Anybody who has a solution?
Btw. there is a similar problemdescription but for .NET.

TX
Daniele

rightmind

  • EA Administrator
  • EA Novice
  • *****
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Debug Java hangs
« Reply #1 on: December 01, 2005, 06:24:00 pm »
Hi again,

The Directory you specify is

D:\projects\TestEA6.0\Software

This path will end up being concatenated with any in
the environment variable CLASSPATH

The debugger will set default dir to this folder
and the try and load class:-

ch.swisslife.prov.dialog.Test

ch is actually a subfolder of src (am I right?)

this will fail because the path is not properly qualified

java will try and load a class in

D:\projects\TestEA6.0\Software\ch\swisslife\prov\dialog

I think your debug command should be

src.ch.swisslife.prov.dialog.Test


let me know how you go

Steve
Sparx Systems Support