java - How can I deserialize an object of a class that comes from another project? -



java - How can I deserialize an object of a class that comes from another project? -

i want import class made in eclipse project in android studio. have been working on project in eclipse involves custom class called wordlist , have serialized instance of class binary file.

now, have started larn android programming , wanted create app uses file. want utilize read wordlist object file:

objectinputstream in = new objectinputstream( new fileinputstream(new file( /*file name*/ ))); homecoming (wordlist) in.readobject();

but in order that, programme of course of study needs know wordlist class, otherwise i'll classnotfoundexception @ cast. did first create new wordlist class in android project exact re-create of 1 in eclipse project, got exception:

java.lang.classnotfoundexception: didn't find class "package_name.wordlist" on path: dexpathlist[[zip file "/data/app/my_project_directory-2/base.apk"],nativelibrarydirectories=[/vendor/lib, /system/lib]].

so apparently, these 2 identical wordlist classes in fact not identical. why so? there way me import class eclipse project android studio project, can utilize same class? or there way create programme realize file contains serialized wordlist object?

pack original class , others jar file , create available other client/lib jar

java eclipse android-studio

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -