They should be filled from the cn1libs you install. Do you get a similar 
error when you refresh the cn1libs after the download?
On Tuesday, September 1, 2020 at 11:22:02 AM UTC+3 P5music wrote:

> The Generate Native Access command does not work, so the native 
> directories like iOS and internal_tmp are empty, although they are in fact 
> under the project classpath.
>
>
> Il giorno martedì 1 settembre 2020 alle 03:32:37 UTC+2 Shai Almog ha 
> scritto:
>
>> Is that class inside your internal_tmp/native hierarchy?
>> Is that directory in your project classpath?
>> On Monday, August 31, 2020 at 8:46:02 PM UTC+3 P5music wrote:
>>
>>> Yes it was outdated, I saved and now it does not alert me anymore, so it 
>>> is up-to-date I think, but when I quit from there it keeps saying something 
>>> was not saved, maybe a .lock or something else? However it seems that it 
>>> saves correctly.
>>>
>>> I notice also that two identical packages were in the Ant window, I 
>>> removed one (I remember this "doubling" issue in the past for something 
>>> else I do not recall now)
>>>
>>> I did what you say, run build, invalidated caches and restarted, but at 
>>> runtime I get:
>>>
>>> java.lang.ClassNotFoundException: 
>>> com.codename1.ext.filechooser.FileChooserNativeImpl
>>> at 
>>> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
>>> at 
>>> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
>>> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
>>> at java.base/java.lang.ClassLoader.findSystemClass(ClassLoader.java:1248)
>>> at 
>>> com.codename1.impl.javase.ClassPathLoader.findClass(ClassPathLoader.java:269)
>>> at 
>>> com.codename1.impl.javase.ClassPathLoader.loadClass(ClassPathLoader.java:109)
>>> at java.base/java.lang.Class.forName0(Native Method)
>>> at java.base/java.lang.Class.forName(Class.java:315)
>>> at com.codename1.system.NativeLookup.create(NativeLookup.java:82)
>>> at 
>>> com.codename1.ext.filechooser.FileChooser.nativePeer(FileChooser.java:66)
>>> at 
>>> com.codename1.ext.filechooser.FileChooser.isAvailable(FileChooser.java:95)
>>> at com.myappcp.app.Utils.fileChooser(Utils.java:315)
>>> at com.myappcp.app.myapp.lambda$start$5(myapp.java:138)
>>> at com.codename1.ui.Command$1.actionPerformed(Command.java:332)
>>> at com.codename1.ui.Form.dispatchCommand(Form.java:2082)
>>> at 
>>> com.codename1.ui.SideMenuBar$CommandWrapper$ShowWaiter.run(SideMenuBar.java:1782)
>>> at com.codename1.ui.Display.processSerialCalls(Display.java:1331)
>>> at com.codename1.ui.Display.edtLoopImpl(Display.java:1274)
>>> at com.codename1.ui.Display.mainEDTLoop(Display.java:1162)
>>> at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
>>> at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)
>>> [EDT] 0:0:15,625 - Exception: java.lang.ClassNotFoundException - 
>>> com.codename1.ext.filechooser.FileChooserNativeImpl
>>>
>>> I remind you that at compile time the error
>>>
>>> /home/pc/IdeaProjects/myappcp/build.xml:532: java.lang.RuntimeException: 
>>> java.lang.NoClassDefFoundError: 
>>> com/sun/xml/bind/v2/model/annotation/AnnotationReader
>>>
>>> is issued, although the compilation succeed and the app runs in the 
>>> simulator (it's for generated interface if I am not wrong).
>>> Could it be related?
>>> Il giorno lunedì 31 agosto 2020 alle 06:26:27 UTC+2 Shai Almog ha 
>>> scritto:
>>>
>>>> First make sure your build XML is up to date. Open Codename One 
>>>> Preferences and click Save. If it's out of date you'll get a prompt asking 
>>>> you to update it.
>>>>
>>>> Then click the Ant panel on the right side of the IDE and select the 
>>>> jar target. Try running it with the right click menu.
>>>>
>>>> On Sunday, August 30, 2020 at 6:03:42 PM UTC+3 P5music wrote:
>>>>
>>>>> So what do I have to do? I am not an advanced IntellJ Idea user.
>>>>>
>>>>> Il giorno domenica 30 agosto 2020 alle 03:40:38 UTC+2 Shai Almog ha 
>>>>> scritto:
>>>>>
>>>>>> The JAR target sets paths and refreshes some things in cn1libs. 
>>>>>>
>>>>>> On Saturday, August 29, 2020 at 10:34:16 AM UTC+3 P5music wrote:
>>>>>>
>>>>>>> It's at runtime in fact.
>>>>>>> It is on FileChooser.isAvailable() instruction, if I remove it I 
>>>>>>> have NullPointerException on FileChooser.showOpenDialog() 
>>>>>>> Maybe some initialization is necessary before using that class?
>>>>>>> Il giorno sabato 29 agosto 2020 alle 07:47:37 UTC+2 Shai Almog ha 
>>>>>>> scritto:
>>>>>>>
>>>>>>>> That's just an IntelliJ warning that should be fine. Try running 
>>>>>>>> the ant jar target and see if it works around that exception.
>>>>>>>>
>>>>>>>> On Friday, August 28, 2020 at 12:03:52 PM UTC+3 P5music wrote:
>>>>>>>>
>>>>>>>>> I get this:
>>>>>>>>>
>>>>>>>>>  Exception: java.lang.ClassNotFoundException - 
>>>>>>>>> com.codename1.ext.filechooser.FileChooserNativeImpl
>>>>>>>>> java.lang.ClassNotFoundException: 
>>>>>>>>> com.codename1.ext.filechooser.FileChooserNativeImpl
>>>>>>>>> at 
>>>>>>>>> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
>>>>>>>>> at 
>>>>>>>>> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
>>>>>>>>> at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
>>>>>>>>> at 
>>>>>>>>> java.base/java.lang.ClassLoader.findSystemClass(ClassLoader.java:1248)
>>>>>>>>> at 
>>>>>>>>> com.codename1.impl.javase.ClassPathLoader.findClass(ClassPathLoader.java:269)
>>>>>>>>> at 
>>>>>>>>> com.codename1.impl.javase.ClassPathLoader.loadClass(ClassPathLoader.java:109)
>>>>>>>>> at java.base/java.lang.Class.forName0(Native Method)
>>>>>>>>> at java.base/java.lang.Class.forName(Class.java:315)
>>>>>>>>> at com.codename1.system.NativeLookup.create(NativeLookup.java:82)
>>>>>>>>> at 
>>>>>>>>> com.codename1.ext.filechooser.FileChooser.nativePeer(FileChooser.java:66)
>>>>>>>>> at 
>>>>>>>>> com.codename1.ext.filechooser.FileChooser.isAvailable(FileChooser.java:95)
>>>>>>>>> ...
>>>>>>>>> ...
>>>>>>>>> ...
>>>>>>>>>
>>>>>>>>> It says also that "Library source does not match the bytecode for 
>>>>>>>>> class FileChooser"
>>>>>>>>> Il giorno venerdì 28 agosto 2020 alle 06:58:22 UTC+2 Shai Almog ha 
>>>>>>>>> scritto:
>>>>>>>>>
>>>>>>>>>> There's this issue for sharing support: 
>>>>>>>>>> https://github.com/codenameone/CodenameOne/issues/3225 which 
>>>>>>>>>> seems to be close to what you're looking for.
>>>>>>>>>>
>>>>>>>>>> There's file chooser but it's mostly for reading not for writing: 
>>>>>>>>>> https://github.com/shannah/cn1-filechooser/tree/master/CN1FileChooser
>>>>>>>>>>
>>>>>>>>>> On Thursday, August 27, 2020 at 1:26:01 PM UTC+3 P5music wrote:
>>>>>>>>>>
>>>>>>>>>>> My app is derived from an Android app. The Android app lets the 
>>>>>>>>>>> user select folders where  exported data can be saved. This is 
>>>>>>>>>>> accomplished 
>>>>>>>>>>> by means of calling the Storage Access Framework that is now 
>>>>>>>>>>> somehow 
>>>>>>>>>>> mandatory I think, for OS versions not recent too, if I am not 
>>>>>>>>>>> wrong.
>>>>>>>>>>>
>>>>>>>>>>> Now I am addressing the file save part (export).
>>>>>>>>>>> The user has to select the folder. I am not expert of iOS way of 
>>>>>>>>>>> handling app public directories and sharing files. But I need that 
>>>>>>>>>>> functionality.
>>>>>>>>>>>
>>>>>>>>>>> And I need the user selection of a file to read it, of course 
>>>>>>>>>>> (import).
>>>>>>>>>>>
>>>>>>>>>>> (Sharing exported data directly, as with bluetooth or sending to 
>>>>>>>>>>> another app, and the incoming intent for import are a separate 
>>>>>>>>>>> question, I 
>>>>>>>>>>> will create another thread but it could be related to this one)
>>>>>>>>>>>
>>>>>>>>>>> How can achieve those two functionalities (import/export)?
>>>>>>>>>>> (Take into account that I  am focused on iOS port at present 
>>>>>>>>>>> time but I want that my Codename app can be also deployed on 
>>>>>>>>>>> Android in the 
>>>>>>>>>>> future with minimum changes and native code injection)
>>>>>>>>>>>
>>>>>>>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/2f527780-bb69-4272-bd22-6205defa8126n%40googlegroups.com.

Reply via email to