I am doing this for the first time i have eclipsejee-helios-3.6. I want to create an RCP project it doesnot ask me "Would you like to create a rich client application?" it just ask me to make an activator class. when i do this i can see only one class in my project . I am following this example.
hey please give me any solution.
First of all, I would suggest you a better tutorial, which I used to learn RCP development.
Check it out - it is the most up to date tut for RCP dev. (based on Helios)
It gives very detailed, easy to follow step by step instructions & some explanation about the ideas behind the framework.
Hope it helps!
PS. just checked: If you got your installation right, in the create new plugin wizard, you are asked if you want to create an RCP application right below the activator class input field
it was my mistake i was selecting the wrong Target Platform. It should be the "Eclipse version" not "an OSGi framework". Now its working fine. So always see for the Target platform.
Related
I am beginning at Java GUI, so I ask you professional coders to be understading towards to my humble question.
So, I have been coding this small Java project. I came across a problem, which is to query a Json file. During my quest over the internet looking for an answer, I stumbled upon this project on github:
https://github.com/json-path/JsonPath
Which proved to be the solution for my problem. Everything I need to be able to search for specific nodes on a json file is there, hard coded.
My beginner question: Is that possible to include this 'JsonPath' in my existing project? The IDE is Apache Netbeans 10.0 and the project is a Java SE application.
Thanks in advance!
I tried searching Services->Maven repository->Find...
I happened to find this package but I have no clue how to add the package. Also, I am not sure if its possible to add it to my project.
At first I thought doing something like "com.jayway.jsonpath" to my main class would solve my problem - But obvisouly it didn't, that's why I'm asking you guys for some guidance.
You're going to want to use a dependency management tool like Gradle or Maven first. This gives you a place to put all of the third-party dependencies like this one in your project. (Note: how to use or install either of those tools is outside of the scope of this question.)
Then, you just need the Maven coordinates. Luckily the project has those coordinates available.
Hello dear Codename One Community,
I've written a class in which is use the package javafx.util.Pair.
When I want to build the application I get no Errors.
But sending an Android build to the server fails. In the Error Log file i found following line:
"Warning: com.mycompany.myapp.Main: can't find referenced class
javafx.util.Pair"
Does this straight up mean that the javafx.util.Pair class is not available for the use in Codename One ?
Thanks in advance & kind regards
Codename One doesn't support the full Java API and doesn't support JavaFX. I'm guessing you changed the classpath of the project, that won't work and would trigger errors when you try to actually build the project.
You need to adapt your project to work with the Codename One API's and JDK subset. The logic for this is explained in this article.
I just started Android Development yesterday and just finished with my first Activity. On running it, I'm getting errors like
**Error:(4, 37) error: package android.support.design.widget does not exist**
As I never post without it, I've already done plenty of searching on this. Basically, what I've understood is that it couldn't find that Widget Package on my PC. So, do I have to download it? If yes, then how?
People on internet had similar problem with Packages and almost every post has different answer to this. Some say change your Gradle File others say Update your Studio (have done it).
Any kind of explanation or bit of knowledge with the solution would be highly appreciated. I'm a kind of geek who want to get concepts and basics clear. So, it would be great if you include the reason and technicality behind this too with your answer. Thanks. :)
It's a design library for Android apps development and as #Dominique pointed have a look at that page and copy paste that compile 'com.android.support:design:22.2.0' line in your project gradle file and press the sync button. Your project will sync in a few moments and the design library will be downloaded. Now you can use this library and there won't be any errors.
No, in Java "package" is not a "library" or a "piece of software" (like it is in some other languages). Package is what classes belong to - you might think of packages as directories containing Java files (it is a simplification, but it works). In Java libraries are packaged into (usually) "jars" (those jars usually contain classes divided into packages), so what you need to download is "jar".
So, first thing you need to check is: what library contains the package, and configure your IDE accordingly. The package in question belongs, I think to the so called android support library, which you can install using the SDK tool.
I am making an Eclipse product which contains the Xtext plugin.I followed this tutorial https://kthoms.wordpress.com/2010/11/12/setting-up-a-rcp-product-for-a-dsl/ and I made a running product.
I created a platform runtime feature with the "needed" plugins. Most plugins are useless and I remove them one by one. But I can't remove Java from the RCP application and some others useless plugins.
When I tried to remove jdt, for example, Xtext doesn't work anymore.
How can I remove Java from the application? Is it implement by a plugin?
Thank you for your help guys :)
If you want to remove something from platform, you can use "activities".
Open your plugin.xml, Extensions tab then add the extension org.eclipse.ui.activities
Create an activitypatternbinding child as the extension, give it an ID of your choice, then fill the pattern attribute with the eclipse id of the element you want to hide. If you want to hide java perspective, this should be something like org.eclipse.jdt.ui.JavaPerspective.
More infos here and here
I'm trying to play with Scala in Android but the Manifest doesn't recognizes my main/only-so-far activity.
I did the set up according to this blog post: http://novoda.com/2009/10/17/scala-on-android/ and everything works until i try to run my app, moment in which the logcat saids that it just doesn't find my Activity. the thing is all i can found about this problem is this: http://tiliman.wordpress.com/2010/02/10/android-development-with-scala/. According to this post the manifest doesn't recognizes the Activity because it ain't a Java file, so he creates a Java class that extends from Scala, which i don't think is a good solution at all.
What do i have to do to get started? I think i'm not missing anything.
According to previously asked questions, there seems to be no solution, i mean no one provided one. But i can't believe that using something like sbt is the only way to make full and substantial Android apps in Scala. Truly, no solution at all?
UPDATE: As for the answer given, i'll give SBT a try. But i still think that is necessary a more straightforward way to do it. In a Google Dev Fest i attended, Tim Bray practically said that you could jut make Android apps in Scala or in Java, naturally and without problems: i don't see how this fits with Manifest doesn't recognizing a Scala activity.
The page you're looking at is pretty old. I'd recommend using AndroidPlugin, which is built on top of SBT (https://github.com/jberkel/android-plugin). It handles building, testing, deploying to the emulator/device, etc.
I've got this building my android app, and the only java file I have is the autogenerated R.java.
With SBT you can also generate IDEA and Eclipse configurations, so you should be good to go.
The solution posted here uses the AndroidProguardScala plug-in, in which if the name of the scala file matches the name of the main activity, there is not problem to have your main activity written in scala.
https://stackoverflow.com/a/11084146/1287856