Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Java Classpath in Necessitas
Forum Updated to NodeBB v4.3 + New Features

Java Classpath in Necessitas

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 900 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PhilipC2
    wrote on last edited by
    #1

    Hi,
    I’m porting an application we’ve written with Qt to Android, using Necessitas. This has gone fairly smoothly, but I need to use a vendor provided Java library to access the serial port on our Android device.
    There isn’t much help available on using Java within Necessitas, particularly with add-on libraries, but I’ve been told by the vendor that I need to include the library in the manifest like this:

    @ <uses-library android:name="vendor.serial.library"
    android:required="true"/>@

    ...and that I also need to include the library in the Java classpath, but this is where I’m stuck: I don’t know where the classpath is stored or how to update it.
    I’m also a little confused as to the location of the library: There’s a version on the device at system/framework, which is what I’ve been told to add to the classpath, but there’s also a version on my computer which is larger. How are add-on libraries managed? Do they get copied to the device from the computer when a deploy occurs?

    I've seen this: http://qt-project.org/wiki/Setup_Necessitas_SDK_on_Windows and tried to setup the environment variable (the stated CLASSPATH variable didn't actually exist on my system), but this doesn't help.

    Any help would be much appreciated!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved