Menu

#1 cant run on my PC

v1.0_(example)
open
nobody
None
5
2004-08-08
2004-08-08
No

I could not run Java3D demo for the first time.
There were errors at the method calling
getAbsolutePath("data/...");
method of JARToolkit3D class. I found that
the retrieved absolute path is invalid
(probably only on windows)
if the String(arugments) is non-alphabet
(for example, two bytes code like Chinese)
because those characters changes into special
letter translation like
%e6
(which is hexa-decimal coding)
like what we do on URL.
(Sorry I forgot the name of this encoding)
Since I am using Japanese Windows,
I am not sure this happens to everyone
but just in case, I wanted all to know.
For now, It is possible to overcome this
problem by just not to call
getAbsolutePath method.
For example,
m_JARToolKit3D.initialize("data/camera_para.dat");
objTrans = m_JARToolKit3D.createPatternTransform
("data/pattern/hiroPatt", true);

Thank you

Discussion

  • Carlos Neto

    Carlos Neto - 2006-12-08

    Logged In: YES
    user_id=1663495
    Originator: NO

    I have the same problem. Did you got the mean to solve the problem?

     
  • Jan Gleixner

    Jan Gleixner - 2009-10-31

    i also gotthis problem while using eclipse on a windows system. i solved it by setting this "data" folder as source folder and changing
    "m_JARToolKit3D.initialize(JARToolKit3D.getAbsolutePath("data/camera_para.dat"));"
    to
    "m_JARToolKit3D.initialize(JARToolKit3D.getAbsolutePath("camera_para.dat"));"

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.