Hi! I Haven't solved the problem. I remember you what problem I am refering to:
[jon@diana ~]$ java PdbToXMLConverter 1FS1.pdb
Exception in thread "main" java.lang.NoClassDefFoundError: PdbToXMLConverter (wrong
name: org/biojava/bio/program/PdbToXMLConverter)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
I tried to put the .class in this directory (relative to my CLASSPATH)
:/org/biojava/bio/program/PdbToXMLConverter.class
But it does'nt solve the problem.
If I put the .class in the directory where I run the program, the error is the same.
On the other hand, if the .class is ONLY in the package directory (the
org/biojava....), I mean if I remove the .class from the current directory, the
problem is:
[jon@diana ~]$ java PdbToXMLConverter 1FS1.pdb
Exception in thread "main" java.lang.NoClassDefFoundError: PdbToXMLConverter
[jon@diana ~]$
I tried removing the package line "package org.biojava.bio.program" but the following
error ocurred while compiling:
[jon@diana ~]$ javac PdbToXMLConverter2.java
PdbToXMLConverter2.java:69: invalid method declaration; return type required
public PdbToXMLConverter(String poInput) {
^
1 error
Thanks for all, spetially to Mattew that suggest me to do this modifications I've
explained. In the case you want to see the source code, it is attached.
PdbToXMLConverter.java
Description: Binary data
