Input
Output

Java to javascript converter

This tool are designed to convert OOPS based javascript code.


Comment

Please share your knowledge to improve code and content standard. Also submit your doubts, and test case. We improve by your feedback. We will try to resolve your query as soon as possible.

New Comment







Sabrina     380 Day ago
não funciona

/*-------------------------
Important Note
 1 [Import missing java 8 package.]
 2 [Check syntax error.]
 Or 
 Servers are busy try after some time 
-------------------------*/
Test.java.java:3: error: package gnu.java.beans does not exist
 import gnu.java.beans.DefaultExceptionListener;
                      ^
Test.java.java:4: error: package gnu.java.beans.encoder does not exist
 import gnu.java.beans.encoder.ArrayPersistenceDelegate;
                              ^
Test.java.java:5: error: package gnu.java.beans.encoder does not exist
 import gnu.java.beans.encoder.ClassPersistenceDelegate;
                              ^
Test.java.java:6: error: package gnu.java.beans.encoder does not exist
 import gnu.java.beans.encoder.CollectionPersistenceDelegate;
                              ^
Test.java.java:7: error: package gnu.java.beans.encoder does not exist
 import gnu.java.beans.encoder.MapPersistenceDelegate;
                              ^
Test.java.java:8: error: package gnu.java.beans.encoder does not exist
 import gnu.java.beans.encoder.PrimitivePersistenceDelegate;
                              ^
Test.java.java:69: error: cannot find symbol
         delegates.put(Class.class, new ClassPersistenceDelegate());
                                        ^
  symbol:   class ClassPersistenceDelegate
  location: class Encoder
Test.java.java:71: error: cannot find symbol
         PersistenceDelegate pd = new PrimitivePersistenceDelegate();
                                      ^
  symbol:   class PrimitivePersistenceDelegate
  location: class Encoder
Test.java.java:80: error: cannot find symbol
         delegates.put(Object[].class, new ArrayPersistenceDelegate());
                                           ^
  symbol:   class ArrayPersistenceDelegate
  location: class Encoder
Test.java.java:82: error: cannot find symbol
         pd = new CollectionPersistenceDelegate();
                  ^
  symbol:   class CollectionPersistenceDelegate
  location: class Encoder
Test.java.java:85: error: cannot find symbol
         pd = new MapPersistenceDelegate();
                  ^
  symbol:   class MapPersistenceDelegate
  location: class Encoder
Test.java.java:135: error: cannot find symbol
     ? listener : DefaultExceptionListener.INSTANCE;
                  ^
  symbol:   variable DefaultExceptionListener
  location: class Encoder
Note: Test.java.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
12 errors

sendo que é a classe java.beans.Encoder.java da oracle
me diz como é que está errado