jaxb generate me a class: jono, step, word, definition and objectfactory
in my folder generated, i try to build my main class:
i get this errors
TestJAXB.java:15: cannot find symbol symbol : class Jono location: class generated.TestJAXB Jono jono = (Jono) unmarshaller.unmarshal(new File("jono.xml")); ^ TestJAXB.java:15: cannot find symbol symbol : class Jono location: class generated.TestJAXB Jono jono = (Jono) unmarshaller.unmarshal(new File("jono.xml")); ^ TestJAXB.java:19: cannot find symbol symbol : class Word location: class generated.TestJAXB Word word = (Word) step.get(i); ^ TestJAXB.java:19: cannot find symbol symbol : class Word location: class generated.TestJAXB Word word = (Word) step.get(i); ^ TestJAXB.java:20: cannot find symbol symbol : method getPicture() location: interface java.util.List System.out.println(step.getPicture()); ^ Note: TestJAXB.java uses or overrides a deprecated API. Note: Recompile with -Xlint eprecation for details. 5 errors
Originally posted by mark smith: #mark@linux:~generated> javac -cp /opt/jaxb/jaxb-ri-20060426/lib/jaxb-impl.jar:/opt/jaxb/jaxb-ri-20060426/lib/jaxb-xjc.jar. TestJAXB.java
Did you mean that the current working directory was in the classpath there? Well, it would be if you had a colon between "...jaxb-xjc.jar" and ".".
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.