These are the details

Compilation and installation of DICOMscope

Moderator: Moderator Team

Post Reply
Message
Author
yuvarajrc
Posts: 4
Joined: Wed, 2005-08-31, 15:26
Contact:

These are the details

#1 Post by yuvarajrc »

Regarding the DICOMscope 3.5.1 tool.

When i compile the source using the statement given in the manual

(F:\DICOMscope\dsgui351\tkgui>javac -d ../DICOMscope DICOMscope.java)

i get the following errors

[
StudyMan.java:76: cannot find symbol
symbol : class DICOMscope
location: class browser.StudyMan
private DICOMscope parent;
^
StudyMan.java:99: cannot find symbol
symbol : class DICOMscope
location: class browser.StudyMan
public StudyMan(jDVInterface dvi, DICOMscope parent,Hashtable config)
^
Note: StudyMan.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
]

please help me on this

Even when i compile the StudyMan.java file alone i get the Same error.
All the other files are able to compile individually and generate class files
except StudyMan.java file.

I also tried putting all the generated classfiles into one jar file with
same directory structure and giving it as a classpath to StudyMan.java
i still have the same problem.


All the Directory stuctures are preserved as per the manual.

i.e
[
dsgui351->DICOMscope
->interface
->tkgui

tkgui ->about
->browser
->jtoolkit
->de
->j2ci
->viewer
->main
->dicomprint
->processCommunication
]

i also tried using the 'ant' command still i land up with the same error.

[
compile:
[javac] Compiling 221 source files to C:\DICOMDEMO\classes
[javac] C:\DICOMDEMO\source\browser\StudyMan.java:76: cannot resolve symbol
[javac] symbol : class DICOMscope
[javac] location: class browser.StudyMan
[javac] private DICOMscope parent;
[javac] ^
[javac] C:\DICOMDEMO\source\browser\StudyMan.java:99: cannot resolve symbol
[javac] symbol : class DICOMscope
[javac] location: class browser.StudyMan
[javac] public StudyMan(jDVInterface dvi, DICOMscope parent,Hashtable co
nfig)
[javac] ^
[javac] 2 errors

]

mailto:raviyuvaraj2004@yahoo.co.in

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

Which version of the JDK do you use? We know that DICOMscope 3.5.1 does not compile with JDK 1.4 so you should try version 1.3. We already solved this issue in DICOMscope 3.6 but this version is not yet available for download.

yuvarajrc
Posts: 4
Joined: Wed, 2005-08-31, 15:26
Contact:

We tried another solution can u suggest its reliability

#3 Post by yuvarajrc »

Since DICOMscope.java and StudyMan.java are interdependent we tried putting classes in StudyMan.java into DICOMscope.java and it seems to work that way do u recommend it for jdk v1.5

will this bring any bugs?

ustc9305023
Posts: 1
Joined: Wed, 2005-11-23, 15:25

#4 Post by ustc9305023 »

hi, yuvarajrc.
could you send me a copy of DICOMscope which you have modified and can be compiled using jdk1.5? my mail address is wzhh@ustc.edu.

thanks in advance

mail2vguna
Posts: 41
Joined: Tue, 2013-07-23, 12:15
Location: Chennai, India

Re:

#5 Post by mail2vguna »

Jörg Riesmeier wrote:Which version of the JDK do you use? We know that DICOMscope 3.5.1 does not compile with JDK 1.4 so you should try version 1.3. We already solved this issue in DICOMscope 3.6 but this version is not yet available for download.
Hi,

As i have seen your discussion above,
I am having a question..
Now i have tried DICOMscope 3.5.1..
I am getting the same error as above.
i am not able to compile other than jdk 1.3.
Still this issue is there or it is rectified?
Looking for your reply...

thanks,
Guna
Thanks
Guna

J. Riesmeier
DCMTK Developer
Posts: 2496
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: These are the details

#6 Post by J. Riesmeier »

Maybe, the source code of DICOMscope 3.6.0 helps: http://dicom.offis.de/download/dscope/dscope360/

mail2vguna
Posts: 41
Joined: Tue, 2013-07-23, 12:15
Location: Chennai, India

Re: These are the details

#7 Post by mail2vguna »

Hi

Thanks for your reply. I will try with dicomscope3.6.0 and get back to you.


Regards
Guna
Thanks
Guna

mail2vguna
Posts: 41
Joined: Tue, 2013-07-23, 12:15
Location: Chennai, India

Re: These are the details

#8 Post by mail2vguna »

J. Riesmeier wrote:Maybe, the source code of DICOMscope 3.6.0 helps: http://dicom.offis.de/download/dscope/dscope360/

I tried DICOMscope 3.6.0 with DCMTK 3.5.3.

When i compile using following command

E:\Dicomscope\dsgui3.6.0\tkgui>javac -d ..\DICOMscope dicomscope\DICOMscope.java

I am getting following message

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

But DICOMscope class files created in dicomscope folder.

Then i try to run the class file DICOMscope.class using following command

E:\Dicomscope\dsgui3.6.0\DICOMscope>java dicomscope\DICOMscope

I am getting following error.
****************************************************************
Exception in thread "main" java.lang.NoClassDefFoundError: dicomscope\DICOMscope (wrong name: dicomscope/DICOMscope) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
****************************************************************

Used Jdk1.6.0_45 and jre6.


Kindly do the needful.


Regards
Guna
Thanks
Guna

mail2vguna
Posts: 41
Joined: Tue, 2013-07-23, 12:15
Location: Chennai, India

Re: These are the details

#9 Post by mail2vguna »

Hi

Solution:

Try with the following command

E:\Dicomscope\dsgui3.6.0\DICOMscope>java dicomscope.DICOMscope

Its working now. Thanks for the help.


Regards
Guna
Thanks
Guna

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest