Need some help to create .jar file using NetBeans - java

I downloaded NetBeans 6.5 complete pack with Java ME. And then I downloaded and installed Sun Java Wireless Toolkit too. And I have tried in all ways to go to New Project -> And in under Java ME -> Mobile Application
Then I enter name and location.
And then when to select the emulator platform, "Sun Java Wireless Toolkit 2.5.2 for CLDC" is there.
But when I press NEXT nothing happens. A red sign just blinks on the background!
I want to create a jar file to be run on Sony Ericsson phones!
How do I do it?

few things to try:
check/uncheck the "create Hello MIDlet" option
check/uncheck the "set as main project" option
change the project name in case it conflicts with another in the same location
only use basic characters in the project name: [A..Z][a..z][0..9]
make very very sure the project location you're using is correct for your operating system.

Related

How to delete auto start apps in BlackBerry?

Hello i had this bug in one of my apps. I can't uninstall it if its marked as an auto start app in Blackberry descriptor. When i turn off this option i can delete it.
Someone has experimented this kind of problem?
i have tried going to apps administrator but the option isn't showing there either.
NOTE: i installed this application through eclipse as DEV.
I found someone having the same problem as me here : https://supportforums.blackberry.com/t5/Java-Development/Deleting-an-autostart-app/td-p/1436287
You can run this command to force-delete an app, if you know the module name:
javaloader -usb erase -f example.cod
You can find the Javaloader executable inside the bin folder in your Blackberry SDK folder. For the eclipse plugin, you can also find it inside the component packs:
<eclipse folder>\plugins\net.rim.ejde.componentpackX.X.X_X.X.X.X\components\bin
(the X are the versions numbers, that might be different in your case).
You might also be able to do it from the device settings, inside the installed apps screen, if you change the view to list the modules.

Installing Genymotion Eclipse plug-in

I have installed Genymotion on my Windows 7 , 32-bit machine. I am working with Eclipse to develop Android apps. I would like to ask what the proper way to install the Genymotion plug-in is.
Going by their website, they provide two JAR files for Eclipse and a note underneath which reads:
The installation of the plugin can be done by launching Eclipse and
going to "Help / Install New Software" menu, then just add a new
Update Site with the following URL:
http://plugins.genymotion.com/eclipse. Follow the steps indicated by
Eclipse. Warning: to use this plugin, Genymotion must be installed on
your system.
I have installed the plug-in from the Eclipse 'Help' menu. I havent downloaded any of the two files. Have I done it correctly ?
The two files are:
1. Genymotion Plug-in for Eclipse
2. Mandatory dependency for Eclipse plug-in
Tutorials
This tutorial shows how you should do everything:
http://www.slideshare.net/scentsome/eclipse-genymotion
And this is the original website tutorial:
https://cloud.genymotion.com/page/doc/
Both explain it perfectly
Extra:
Android Studio:
Go to File/Settings on Windows and Linux or Android Studio/Preferences on Mac OS X.
Select Plugins and click Browse Repositories.
Right-click (double-click for Mac OS X) on Genymotion.
Click Download and install.
Click Yes.
Click Close.
Click OK.
Restart Android Studio by clicking Restart.
If you want to do the manual method or want to see the instructions from their website, this is the link: https://www.genymotion.com/#!/developers/user-guide#genymotion-plugin-for-android-studio
Eclipse:
If you want to have the genymotion virtual devices inside eclipse do this:
Go to help -> install new software -> add this link: https://dl.genymotion.com/eclipse
For those who face There are no categorized items on Eclipse
Uncheck Group items by category
Follow this link, There you can see how to install genymotion eclips plugin.
Eclips>Help>Install new software>Add>
Type anything on Name box.
Inside Location box : http://plugins.genymotion.com/eclipse
Then follow the steps.
Below is a demonstration to show how to install Genymotion in Eclipse ADT
https://www.youtube.com/watch?v=3sBHQqZ5TKk
Note: sometimes after additions of the plugin from Help | Install new software it is not giving the checkbox to check or the ability to install. At this time uncheck "Group Items by category" to list all items without any grouping. Check all of items then press Next and proceed.
Yeah dude you done it perfectly after installing genymotion you will see an icon in your eclipse when you click it then a window with genymotion devices will be shown
(You must install genymotion virtual box and should have virtual devices in genymotion to run your app sucessfully)

Eclipse (SWT composite): How to run and where is build?

I am new to Eclipse and Java programming having mainly worked with Microsoft Visual Studio.
I installed Eclipse (Kepler 4.3) with no issues along with WindowsBuilder and SWT.
I created a new project adding in references to SWT, both WindowsBuilder JARS, and resty. Into the project, I created a new package and selected a SWT composite. I gave appropriate names.
The GUI designer came up with no issues. I added in a couple of controls. The idea is to create a hello world application, display that application, and build it. Eclipse has automatically build checked.
Okay, the IDE in designer view shows the GUI of my Hello World application and the source view the source, so no problems there.
I press Run, and the first time I had to select a run configuration, which I selected EclipseStarter. There was not many options. I click on run and nothing happens.
If I go to the project's bin package folder, I see a file with a ".class" extension.
Why does pressing Run|Run (Ctrl+F11) do nothingness? There is a brief hour glass showing, but then nothing after that.
How do I launch the application from within Eclipse?
Is the generated ".class" file the correct runtime? I double click on that and Windows does not know what to do with it?
The end platform will be CentOS, but Java as I understand things, should be platform independent, so my Hello World application should run on my Windows 7 Pro box just as nicely. (I did not try CentOS yet) as I want to see it work on my desktop and know what file to copy over.
I think you selected the wrong option EclipseStarter.
Try running it as a Standalone Java Application.
It is a Standalone Java Application that you're building, right?
(I mean, the analogue of a Windows Forms App in .NET)
1. I guess because you selected the wrong type.
2. Ctrl+F11 is for Running it, F11 only is for Debugging it.
3. The class file has to be run by a JVM, Windows cannot run it directly,
it is not anything like a native executable or like a .NET assembly
(which Windows 7 knows how to run). But as you're using Eclipse you
already have a JVM.
The solution is multi-fold.
I had to delete Eclipse and install the 32-bit version of everything. That simplified life, as 64-bit caused issues running.
Create a new package
From the toolbar, select "Create new visual classes" drop down. Select "SWT" --> "Application windows".
Create the application window
Press the play button, 8th icon having selected the package first.
That enabled to run my Hello World on Windows. The output is a .java.
I still have a problem running from the command line, but that is a different issue.
Summary: My main issue was creating a SWT application window first and that I should have 32-bit for everything.

How can I modify the DroidGap.class file from phonegap-1.0.0.jar archive in eclipse?

I am really very new on android development.
I have made 2-3 apps , those running on my android device already.
Last few days I am facing a stupid problem.
The problem is , creating the app fullscreen for every device. I have read phone gaps wiki
and tried with specific way. But I failed everytime.
When I'm trying to open the DroidGap.class from my Android eclipse project explorer , I got a error. that, "DroidGap.class has no source attached". (after build the phonegap.jar)
Please help me....
first you need to add phonegap.jar to your project
you need to add phone gap plugin to your eclipse
Use the AppLaud Eclipse Plugin for PhoneGap Android
Download and unzip the PhoneGap sources from GitHub
In the AppLaud wizard, select "Enter path to installed PhoneGap"
Enter the directory path to the unzipped sources from GitHub
Now you will be able to modify and debug the sources that comprise phonegap.jar
Caveat: I'm the creator of the AppLaud Plugin
fullscreen?
If you want modify DroidGap.class dowload source code from github and rebuild phonegap.
Rebulid instruction here: https://github.com/callback/callback-android/blob/master/README.md

Getting started with Netbean Platform?

I wanted to build Java Application using netbean platform but there were no any NetBeans platform to select from.And I could not add one using Manage button.How do I get started?
I am using Netbean 7.0
I'm unsure as to why your installation has become corrupted in this way but you can always add a Platform to your installation through Tools > NetBeans Platform menu item. Click the Add Platform... button and browse to your NetBeans' install directory, for example:
C:\Users\Me\Program Files (x86)\NetBeans 7.0
Then you should be able to select the platform in the wizard.
You should only need to select the top level directory for this to work. I've included a screenshot for you to compare yours to. It's possible that your installation of NetBeans has become corrupted and if you are not seeing the same behavior as pictured below then most likely you'll need to reinstall NetBeans.
Notice in the below screenshot that the Platform Name: is filled out (top red arrow) and the Next button is enabled.

Categories