i found one example App for creating Rss Reader using lwuit,the example app url is
"https://projects.developer.nokia.com/LWUIT_for_Series_40/browser/IO/src/com/sun/lwuit/io/ui/RSSReader.java"
i have gone through the code ,but in this Example there is no Midlet creation and somme of the classess below classes are not found in lwuit jar file
import com.sun.lwuit.io.NetworkEvent;
import com.sun.lwuit.io.NetworkManager;
importcom.sun.lwuit.io.services.RSSService;
import com.sun.lwuit.layouts.BoxLayout;
import com.sun.lwuit.list.DefaultListModel;
Can any one guide me to execute this example app successfully on my device?
You can obtain all com.sun.lwuit source code from an svn checkout. Url https://svn.java.net/svn/lwuit~svn Take a look at LWUIT_1_5 root folder.
I also went through this problem. For the lwuit.jar you can go two ways: (1) download the source code of the subversion repository (response by Telmo) and compile the files in NetBeans IDE; or (2) get a version of LWUIT already compiled by someone.
To open source code with NetBeans go:
NetBeans IDE menu / Team / Subversion / Checkout /
Access the source code using the following URL:
https://svn.java.net/svn/lwuit~svn (anonymous)
or SSH URL (requires SSH key): svn+ssh://#svn.java.net/lwuit~svn
After import all projects (like UI, IO... and build it). (required WTK 2.5.2 reference - in project property), can use the new libs in their examples.
Related
I've added a KMM module in my Android Studio project.
My project builds successfully.
Now to test everything I'm trying to use the auto-created Greeting class in my main project, but autocompletion does not suggests the class.
Am I missing something? Do I need to add something to my gradle file?
Thanks!
If you have just created a new project with KMM Application Template then you might have already got the simple example where Greeting is already imported in the project.
Although if you are not able to import in any case then please check if you have added shared module in your dependencies of App level build.gradle.kts it looks like this :- implementation(project(":shared"))
and then you need to import is as
your shared package name.Greeting for example :- import com.example.kmmsample.shared.Greeting you can get your shared package name in manifest file for shared module it should be named as androidMain\AndroidManifest.xml
Now in iOS you can simply add it as import shared if you have already added it in your Framework.
I need to use the #Grab in a Groovy script in SAP Cloud Platform Integration and it gives an error ClassNotFoundException: org.apache.ivy.core.report.ResolveReport .
Is there a way I can add this kind of dependency or can I load a jar on CPI in another way?
old thread, but basically you download the .jar (just google it) and upload it in the SAP CPI process. Just add it under Resources for the flow as an archive.
Then you just import it like all other libaries.
For example you can download Apache Commons Text 1.9 here:
https://commons.apache.org/proper/commons-text/download_text.cgi
(get the zip, extract the .jar, upload it in SAP CPI resource).
Then in your groovy script, just leave out the #grab and only do the import - for example:
import org.apache.commons.text.StringEscapeUtils;
That means you don't have ivy-XXX.jar in the classpath.
This library included into full groovy package, but it's not in the groovy-all-XXX.jar that is mainly used for groovy-enabled applications.
Just take ivy-XXX.jar from groovy package or download from maven central and put into classpath of your application/server.
hopefully, it will work
I have an instance of crafter running with crafter-studio-publishing-receiver-2.5.3-aio.jar, I need to locate the source code for the jar file.
Is this the right repository
What is the significance of the word "legacy" in the name of the project?
You can find the source code here:
https://github.com/craftercms/legacy-deployer
The specific version can be found by checking the manifest of the jar.
- unzip the jar
- open ./META-INF/MANIFEST.MF
- locate the property Implementation-Build: 87c84d58313b2bcbdca306de69758320aee174d0
This value can be placed in github to get the exact code you are looking for.
Example:
https://github.com/craftercms/legacy-deployer/blob/87c84d58313b2bcbdca306de69758320aee174d0/cstudio-publishing-receiver-zip/pom.xml
The reason we renamed the project "legacy-deployer" in github is that with Crafter 3.x we are moving to a new deployment system. Without going too deep on this: The new system is based on Git pulls, as you can imagine, this approach has many benefits. It will support the same concepts (callbacks etc) as the now "legacy" deployer.
I am a newbie learning how to code in Swift on Linux.
Right now I am trying to use Perfect framework so I can create th REST service (or something like that) I am following instructions in this
https://videos.raywenderlich.com/courses/77-server-side-swift-with-perfect/lessons/1
video (I have found a link on perfect.org site) and I did everything just like in the video, but the problem occurs when I have to edit the main.swift file and use include to use the PerfectLib, PerfectHTTP and PerfectHTTPServer libraries/modules(?). When I run it the error shows on the terminal saying:
main.swift:1:8: error: no such module 'PerfectHTTP'
import PerfectHTTP
Same with other modules. Do I have to place downloaded files from Perfect to some special directory within swift directory? Or maybe the files in download link are not complete?
before doing any Server Side Swift, please temporarily forget Xcode and try a new tool chain called Swift Package Manager. Open a terminal in a blank folder and type swift package init then it will setup a blank project which contains a Package.swift, a folder named Sources and a Tests directory as well.
Now you have to edit the Package.swift before import anything into your source code. For example, the starter template Perfect server has such a Package.swift:
import PackageDescription
let package = Package(
name: "PerfectTemplate",
targets: [],
dependencies: [
.Package(url: "https://github.com/PerfectlySoft/Perfect-HTTPServer.git", majorVersion: 2)
]
)
Then you can import any Perfect libraries included in the Perfect-HTTPServer.git
Here is the importing part as defined in the main.swift of PerfectTemplate:
import PerfectLib
import PerfectHTTP
import PerfectHTTPServer
So I will suggest that the best practice is to try Perfect Assistant: https://assistant.perfect.org/perfectassistant/Perfect%20Assistant.dmg which can save most tricky operations such as dependency management, building on linux and production server deployment.
For more information about Perfect other than tutorial video, see this link: http://www.perfect.org/docs/
I have node.js installed on my mac. However I am not able to find the the source code.
The 'node' binary file is located /usr/local/bin however since its binary, I can not view it.
For example I want to see internal of console.log function.
On joyent github I can see the code but I want see it when I am offline via some editor like webstorm.
https://github.com/joyent/node/tree/master/lib
Can someone please help.
Thanks
Locally you have Node.js installed. To make your life easier, Node.js developers have already compiled Source into runnable Application.
Because you downloaded already compiled Node.js (that is OK, and sensible), you need to also download source-code if you want to access it offline.
Downloading source-code is just as easy, you can grab the latest code available at the same location as you specified: https://github.com/joyent/node. Look for "Download ZIP" button on the bottom right.
In case of webstorm this link will help - http://www.jetbrains.com/webstorm/webhelp/node-js.html - see "Configuring Node core module sources"