error : package com.jme.scene.model.XMLparser.Converters

I jme users

Where are the errors?  :?

and i have latest version of jmonkey

The guide currently refers to jME release 0.8

And yes - where are the error messages?  :|

these are  the errors



sorry forgot to post the errors





C:Documents and SettingsADMINDesktop>javac  HelloModelLoading.java

HelloModelLoading.java:2: package com.jme.scene.model.XMLparser.Converters does not exist

import com.jme.scene.model.XMLparser.Converters.MaxToJme;

                                                ^

HelloModelLoading.java:3: package com.jme.scene.model.XMLparser.Converters does not exist

import com.jme.scene.model.XMLparser.Converters.FormatConverter;

                                                ^

HelloModelLoading.java:4: package com.jme.scene.model.XMLparser does not exist

import com.jme.scene.model.XMLparser.JmeBinaryReader;

                                    ^

HelloModelLoading.java:5: package com.jme.scene.model.XMLparser does not exist

import com.jme.scene.model.XMLparser.BinaryToXML;

                                    ^

HelloModelLoading.java:27: cannot resolve symbol

symbol  : class SimpleGame

location: class HelloModelLoading

public class HelloModelLoading extends SimpleGame {

                                      ^

HelloModelLoading.java:34: cannot resolve symbol

symbol  : variable SimpleGame

location: class HelloModelLoading

app.setDialogBehaviour(SimpleGame.ALWAYS_SHOW_PROPS_DIALOG);

                      ^

HelloModelLoading.java:40: cannot resolve symbol

symbol  : method start ()

location: class HelloModelLoading

app.start();

  ^

HelloModelLoading.java:51: cannot resolve symbol

symbol  : class FormatConverter

location: class HelloModelLoading

FormatConverter converter=new MaxToJme();

^

HelloModelLoading.java:51: cannot resolve symbol

symbol  : class MaxToJme

location: class HelloModelLoading

FormatConverter converter=new MaxToJme();

                              ^

HelloModelLoading.java:62: cannot resolve symbol

symbol  : class JmeBinaryReader

location: class HelloModelLoading

JmeBinaryReader jbr=new JmeBinaryReader();

^

HelloModelLoading.java:62: cannot resolve symbol

symbol  : class JmeBinaryReader

location: class HelloModelLoading

JmeBinaryReader jbr=new JmeBinaryReader();

                        ^

HelloModelLoading.java:66: cannot resolve symbol

symbol  : class BinaryToXML

location: class HelloModelLoading

BinaryToXML btx=new BinaryToXML();

^

HelloModelLoading.java:66: cannot resolve symbol

symbol  : class BinaryToXML

location: class HelloModelLoading

BinaryToXML btx=new BinaryToXML();

                    ^

HelloModelLoading.java:94: cannot resolve symbol

symbol  : variable rootNode

location: class HelloModelLoading

rootNode.attachChild(maggie);

^

14 errors



C:Documents and SettingsADMINDesktop>



thanks for your time





 

The javac is missing the classes. Mention the .jar on the command line or use ant.



A command line could look like:

javac -cp .;jme.jar;jme-model.jar HelloModelLoading.java



I use ant for that it really makes things easier.

i used the command u told and gives me this





C:Documents and SettingsADMINDesktop>javac -cp .;jme.jar;jme-model.jar HelloModelLoading.java -g

javac: invalid flag: -cp

Usage: javac <options> <source files>

where possible options include:

  -g                        Generate all debugging info

  -g:none                  Generate no debugging info

  -g:{lines,vars,source}    Generate only some debugging info

  -nowarn                  Generate no warnings

  -verbose                  Output messages about what the compiler is doing

  -deprecation              Output source locations where deprecated APIs are used

  -classpath <path>        Specify where to find user class files

  -sourcepath <path>        Specify where to find input source files

  -bootclasspath <path>    Override location of bootstrap class files

  -extdirs <dirs>          Override location of installed extensions

  -d <directory>            Specify where to place generated class files

  -encoding <encoding>      Specify character encoding used by source files

  -source <release>        Provide source compatibility with specified release

  -target <release>        Generate class files for specific VM version

  -help                    Print a synopsis of standard options



:expressionless:

Ah, so try the long form -classpath instead.

thanks very much for your quick answear but i dont know what is long classpath can u post the command here for me to try

tks

Just replace -cp with -classpath.

Not to sound harsh or anything, but I'd recommend you cut your teeth on something easier in Java before attempting to work with jME.

i did what u said to do javac -classpath

If you are using jME .9 or cvs jME, those classes were moved to com.jmex.model.*

Hi thanks for your help is getting better less errors but still has errors i change the imports to:





import com.jmex.model.*;



import com.jme.scene.Node;

import com.jme.util.LoggingSystem;

import java.net.URL;

import java.io.ByteArrayOutputStream;

import java.io.IOException;

import java.io.ByteArrayInputStream;

import java.io.OutputStreamWriter;

import java.util.logging.Level;





but i still got these errors



C:Documents and SettingsADMINDesktop>javac  HelloModelLoading.java

HelloModelLoading.java:42: cannot resolve symbol

symbol  : class FormatConverter

location: class HelloModelLoading

FormatConverter converter=new ObjToJme();

^

HelloModelLoading.java:42: cannot resolve symbol

symbol  : class ObjToJme

location: class HelloModelLoading

FormatConverter converter=new ObjToJme();

                              ^

HelloModelLoading.java:48: cannot resolve symbol

symbol  : class JmeBinaryReader

location: class HelloModelLoading

JmeBinaryReader jbr=new JmeBinaryReader();

^

HelloModelLoading.java:48: cannot resolve symbol

symbol  : class JmeBinaryReader

location: class HelloModelLoading

JmeBinaryReader jbr=new JmeBinaryReader();

                        ^

HelloModelLoading.java:50: cannot resolve symbol

symbol  : class BinaryToXML

location: class HelloModelLoading

BinaryToXML btx=new BinaryToXML();

^

HelloModelLoading.java:50: cannot resolve symbol

symbol  : class BinaryToXML

location: class HelloModelLoading

BinaryToXML btx=new BinaryToXML();

                    ^

6 errors





but i think is starting to get better

sorry i did not copy that that but i also have



import com.jme.app.SimpleGame;



and the errors are the ones above



cheers for helping me is very important final year project  :wink:

Please look at the import statements you replaced with com.jmex.model.*;  Are they all on the same package level? No.  What kind of end of year project are you doing that leads you to using jME without first knowing Java?

You have to import SimpleGame…



EDIT: Read the wrong post, when I was referenceing the error… that's where the simplegame came from.

i did not say i was an expert nobody borns knowing everything :slight_smile:

i think i did not understand whitch packeges i should delete and witch ones i should keep if u can idicate me in the write way would be very good

tks

What Renanse is trying to say is com.jmex.model.* doesn't import subdirectories… so you are not getting stuff in XMLpaser, etc.



This really is a very basic problem, and does cause one to wonder.

i am starting to understand now

so i cannot use .* that i understand

but i also want u to understand that i have the Nightly Build instalation so i dont know about the subdirectories i should import

thanks

lol

eureka i think i understand now what i have to do is this



import com.jmex.model.XMLparser.CXMLparser.Converters.FormatConverter;

import com.jmex.model.converters.ObjToJme;

import com.jmex.model.XMLparser.JmeBinaryReader;

import com.jmex.model.XMLparser.BinaryToXML;



right lol

:smiley: