How to install an application into the Windows CE 7 image? - java

I was looking for a guideline on how to install or better said how to integrate an application into the Windows CE 7 run-time image.
Concretely I need to install Android SDK into the Win CE 7 Image.
If it is not possible then does anybody can say if is it possible to install it after
first boot. The same question can be applied on Java JRE for embedded devices.
In my situation I have ARM 7 based board with enough resources to run Win CE 7.
In fact I managed to install it. Now I need Java on it.
This question can be easily extended on other applications. It is always simple to install
something you made and know what registry entries, drivers and other applications you
need for running but in case of third party you have to ask or try it yourself.
Thanks in advance.

Your questions is vague or broad. I'm not sure which.
If you want to know how to integrate some application or DLL with the platform, then there's a general methodology of using REG/BIB and DAT files. This works for your own app of third party apps. It's how any file is put into the OS image, Java or otherwise. That's covered here and here
If you're asking about a JVM for CE, that's a completely different question, already answered here, here, here, and here.
Now when you talk about "SDK", which is "software developer's kit", it nearly sounds like you want to develop android apps on your CE device. That's somewhat asked (and not properly answered) here, but the answer is pretty much "there really isn't a tool for it and why would you do tyhis anyway?"

Related

Issues running Java SWT app on macOS M1 machine

I've been using the "Java SWT version" of an app called PasswordSafe for many years on my Mac machines. It has been rock-solid. I've just bought a new iMac with the M1 processor because the "Fusion Drive" in my 2017 vintage iMac died. I installed Java, and the latest version of Java PasswordSafe on my new M1 iMac. Unfortunately, something is not working properly: The "top level" GUI looks normal, and it can open my PasswordSafe database file, but it presents a very garbled interface when I (for example) try to edit a password entry in the database.
I don't know much about Java - or SWT - never having written a single line of code in either. I've contacted the author of PasswordSafe, but he tells me that Java PasswordSafe is no longer being maintained.
In brief summary, my question is, "In trying to repair this broken-ness, Where should I start? I realize that's a very lame question, but let me try to explain what I'm trying to learn:
AIUI, Oracle no longer supports or provides a JRE or JDK that's compatible with the M1. I've read that a third party does provide these tools, but apparently Rosetta allows the Oracle tools to run on the M1. In fact, during installation of Oracle's JRE/JDK, I saw a brief popup notification re Rosetta. My conclusion from this is that the Java software components (JVM or whatever) are operating, although sluggishly, and perhaps with other flaws due to Rosetta imperfections?
The assumption that Java is more or less operational leads me to wonder about SWT. There is another recent question here on SO re issues with the SWT, but in my case, I get no displayed runtime errors - only a mangled interface. But then perhaps I'm not looking in the right place for those errors?
I've done a bit of research on the status of SWT on M1, but found no clues on their website. I haven't found any clear answers on whether or not SWT runs on M1 or not.
So that's what I've got - a very ill-defined situation with no obvious way ahead, and no experience in SWT or Java to guide me.

java web start alternative [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
We're looking for an alternative to Java web start that effectively does the same thing, just better implemented. We're having massive trouble with it. We have a few offices of XP desktops, all slightly different and so far only a handful have worked without serious tweaking. Problems are to do with not playing nicely with the proxy settings (using direct connection in Java control panel allows it to work), refusing to run when params like "-Xmx" are set but running fine when they aren't (until it runs out of memory) and other odd problems that we can't fix.
The way web start works is exactly what we want, i.e. connecting to a server that has the app, downloading anything that's changed, keeping a cache of jars, etc. Other teams here use 'clickonce' for their C# apps and it does effectively the same thing but seems to be less trouble.
I'm convinced we're not the only people to have run into this but searching around doesn't really show any alternatives. We've looked into writing a stub local application that is essentially just a URLClassLoader that loads up our app over the network on the fly but unfortunately that's too slow from other offices. Anyone have any ideas?
Thanks
Update
In case anyone is curious as to what eventually happened, we gave webstart another month or so but continued to run into problems so we implemented our own version. It's basically just a stub that has a URL class loader that you point at a webserver. It's < 200 lines of code and it has been working perfectly for months. It's not ideal but until someone improves webstart we'll stick with it.
Update 2018
So, several years later and I'm working on a new project with the same problem. Instead of writing our own webstart implementation this time we're using getdown. We've found it to be a vast improvement over web start and it's been working really well for us.
My company is also experiencing webstart pain especially with JRE 1.6 update 19 and 20. Our problems revolve around the Mixed Code security warning. (everything is properly signed and the problem is intermittent)
Anyhoo, I stumbled across getdown by threerings. I haven't tried it yet, but seems promising https://github.com/threerings/getdown/wiki
I use JWS extensively in my company. The ONLY real problem that I've seen with JWS occurs only when you try to run JWS from cache AND your client's machine has just upgraded to a newer version of Java. The application will fail to launch with a "Unable to launch", "cache file not found" error or something similar.
There are two ways that I use to fix this problem: I either clear the cache and have them reinstall the app, or I simply have them click on the URL again from my website (easiest for my users). In both cases, the problem fixes itself. This would explain why several developers here never see this problem, most likely because their users always click on a URL instead of the installed launcher.
As a workaround, and in some of my mission critical apps, I use either of the following inside a script:
java -jar netx.jar -jnlp http://url/to/my/launch.jnlp
or
javaws http://url/to/my/launch.jnlp
where netx is a third party library.
It is not the prettiest solution, but for me these work 100% of the time.
Now, if I could only figure out how to get the desktop shortcuts from not going to hell... but that's a discussion for another time.
I find all your probles quite strange. i've worked during a certain time in a company distributing its trading software using JWS, and it always worked really fine. Have you considering taking a look at the unofficial Java web start FAQ before dropping the whole technology ?
we also use JWS a lot and since around 1-6_19 it realy started to be a pain. Some apps started up 1-6_19 others didn't then we updated to 1-6_20 and it was sort of the other way around. Then update to 1-6_21/2/3/4 and problems only changing. We might give up. It looks like the development team since Oracle took over changed. Otherwise there is no other explanation to make JWS worse then better.
GetDown seems to be flaky as well. I just tried some of the game websites they advertise as examples in action. They all failed to load in my Firefox. Maybe my Java to Firefox integration is to blame? I've got JRE 7 32-bit installed after JDK 1.6 64-bit.
In general Web Start problems and poor user experience many times are related to the way Java was installed on the users machine. On Windows I noticed that if you install older version of Java after newer (expecting both will co-exist), I start getting problems running applets and WS applications.

what is the Best OS for Ruby on rails and Java Development? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
HI
I am studying computer applications (software development) and will graduate in a year, i will be taking a year off to get my coding skills up to scratch as i have recently come to love code and development. i tried getting rails working on my windows 7 machine but that was painful.
My question is, is it worth it to go out and buy a Macbook if i'm going to be doing a lot of code in rails and java? over the next few years? does it make life easier?
Lets hope this does not turn into a Linux vs Mac flamewar.
At work and on my private machines, I use Ubuntu/Linux for RubyOnRails and Java development.
Sure, under OS X you have many nice tools available (like TextMate), but there are many others in Ubuntu/Linux available too. For free.
GEdit can replace TextMate quite well when using the right plugins, and for big projects I would always prefer NetBeans (for Rails and Java).
Also Ubuntu's package management and package feeds make it very easy to set up a working development environment.
And finally:
Apple is really expensive, you will pay many bucks just for the logo on your device.
Ubuntu is absolutely free on the other hand and can run nicely on almost any hardware (200$ Netbooks for example).
My suggestion:
try out Ubuntu on your current device - if you don't like it you can still go for the white fruit. And don't even think about using Windows for Rails Development.
There's no need to go out and pay top dollar for Mac hardware. You can get a stacked and rock-solid Toshiba laptop, put the latest Ubuntu on it, and you'll have a great Rails devleopment system.
Ubuntu is the way to go man. You'll love the ease of use and installation, too.
UNIX variants, of course. Actually, Mac OS is very nice, because of TextMate and some similar tools.
Mac would probably ideal for Ruby, but for Java I'm not too sure. For Java, the safest bet would be either Linux or Windows. But Ruby on Windows (with regards to tools and utilities) is pretty dismal.. so for the best of both worlds I would go with Linux. The OS is free and there's no need for specific hardware, or to run a virtual machine.
I started using Ubuntu for Rails development a few weeks ago and have noticed a big improvement over Windows (although I still dual boot) due to the following:
Terminal in linux is alot more robust than command prompt
Rails commands seem to run faster in Ubuntu
vim is a nice lightweight editor
If your going to use an IDE, I would suggest NetBeans for Rails and Java.
I have always worked on Windows systems, mostly working on C++ and later C#. I started working with Ruby on Rails more than a year ago. I did that on windows, and actually that worked out pretty well for me (just make sure to use a ruby version from rubyinstaller.org).
Although lately i have switched employer, and i am developing on ubuntu 10.04, and i even switched my home-system. I would recommend Ubuntu 10.04, but there are some very valid reasons to keep using Windows as well (some commercial software totally not being available on Ubuntu).
I have worked with ruby on rails in ubuntu, mac OS X and windows. Windows only was the worse but I prefer it with a virtual machine loaded with a ubuntu server 10.04 (it helps you in deployment also, as the most servers have linux), I have samba - access to the ubuntu files through windows explorer and it is working like a charm. You also have snapshots to revert if you do something wrong (through virtual machine), so you can destroy and recover it very easily and keep backup without any problem. Also you can transfer it everywhere with just copy paste.
Mac OS X is also a good choice, but it isn't as good as ubuntu for me, I am used to windows graphical environment and the commands in the command line sometimes is a little different (mac OSX is unix, it isn't linux and it doesn't use X windows), so it is a little tricky to feel comfortable, you have to learn a lot more to get the productivity you already have with windows. Also textmate needs time to get used to it, so better invest in a better solution like vim or emacs.
I've had great results running Java under Ubuntu. The UNIX environment is great IMO for scripting, running web application servers etc. In your position it is probably also a useful skill set to acquire.
In the past I've also run quite a few of my Java applications on Macs. They ran perfectly well, but I wasn't totally satisfied with performance of the JVM. That may have well have improved in recent versions of course.
I prefer uBuntu
Lets remember there are a couple of uBuntu specific setups that are required. Here are a couple links:
https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm
http://gorails.com/setup/ubuntu is my favorite

What version of Java is realistic to expect on a client/browser?

I'm planning to develop an applet-based application that will be used by "average Jill" non-technical users (classical musicians, to be precise). What version of Java can I realistically expect those users to have installed in their browsers? Is 1.5 safe? I know Microsoft hasn't bundled Java with Windows in years, but do most OEM Windows machines have it? What about Macs?
I realize if I use the standard deployment techniques it can prompt the user to install Java if they don't have it or their version is too old for my code, but I'd still like to have a sense of what features I can realistically code for without most users having to install anything. Thanks,
Edit: one other thing not covered by the earlier question: how common is it for Windows users not to have Java at all in this day and age?
Very difficult to tell. Java 5 has been out for years but may not be universally available.
Java 6 would be even better, it is vastly improved as far as the client experience is concerned.
Definitely Java 5 or higher. JDK 1.4 went out of support in Oct 2008, over thirteen months ago.
Java 5. If you target macs (average user), you won't get Java 6.
I think that it's fairly unreasonable to suspect that anyone who doesn't develop in Java to have it installed. I have it installed on two of the six computers I use regularly, and even then I plan to uninstall it from both once I finish working on the small side project that I started recently. My parents don't have it installed on their computers, and they'll install anything and everything they can find on the internet. The only site I've visited in years that has even had a Java applet on it is Facebook.
Internet Explorer, Firefox, and Chrome don't come with Java. Nothing on the web uses Java. I don't expect any recent computer to have it anymore, though if you can gather stats on the actual visitors of your site, you'll be better off.

How to start using and developing on Ubuntu Linux? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am a newbie Linux user who came from 10 years using windows OS, and developing in Microsoft languages.
I want to have a good experience in Linux world and developing on it.
First, I want to learn how to use this new OS, then how to start developing on it, I am interested in web applications, specially using Java/PHP because I have some experience in both and it will be a good start.
Second, I want to learn how to develop on it.
Are there any video tutorials to give me a good starting push? any recommended books or references?
Suggestions
Environment Setup
I would recommend you install a the JDK if you are doing Java development. Look here for instructions on using apt to install the sun JRE.
Then, get yourself a decent IDE setup. Try Netbeans or Eclipse - both can be configured to work with php as well.
Also make sure you install php and Apache, here are some instructions.
Since it sounds like you are going for the classic LAMP setup, you may as well install PostgreSQL or MySQL.
That should get you running far enough to make videos, etc useful.
Development Resources
IDE Resources
Guided Video Tour of Netbeans 6.5
Eclipse and Java Video Tutorials
Java
Java Antipatterns - Learn what not to do in Java.
Apache Commons - Get libraries for common tasks in Java.
PHP
PEAR - Get libraries for common tasks in PHP.
ADODB - Get a decent db backend for PHP and learn how to prevent SQL injection attacks from the start.
Start to play around with a web dev framework.
Ubuntu Pocket Guide
If you're new to Linux, I'd suggest you look at the Ubuntu Pocket Guide. It goes through basic stuff that any user would want to know - window management, system configuration, etc, as well as some historical background on Linux and Ubuntu. You can skim through that and learn a bit.
Bash Basics
Towards the end, it also explains the basics of bash, which is the Linux command line. That part is interesting - you can do a lot more in bash than you can do in the Windows command line. For example, you may be familiar with this Windows idiom:
dir > directorylist.txt
...which means, "list the contents of this folder, and instead of showing the output, put it in this file."
In Linux, you can do that, and you can also do piping, where you direct the output of one command into another. For example:
ls | grep foo
means "list the contents of this folder, and search through the output for the regular expression foo." You can add as many pipes as you want and use a variety of commands.
You can also use brace expansion to run multiple commands in sequence. For example,
mkdir photos_{france,spain,italy}
will create directories called photos_france, photos_spain, and photos_italy.
If you're going to be developing in Linux, you should invest the time to read some tutorials on bash to take full advantage of it.
Since both Java and PHP are cross platform, it seems your biggest task would be to familiarize yourself with GNU/Linux and tools related to web development, apache web server in particular. Here are a few things google gave me:
http://www.micahcarrick.com/09-28-2007/web-development-linux.html
http://httpd.apache.org/docs/2.2/
Have fun.
Another option is Lazarus, which is based on Free Pascal, which itself is based on Delphi.
Lazarus allows you to develop using Object Oriented Pascal, across Linux, Windows and MacOSX and produces natively compiled executables on each target platform.
Natively compiled executables are generally much faster than interpreter based apps (i.e. Java, C#, PHP).
Lazarus use a component and event based approach to development which allows you to design GUI by dragging and dropping components on a Form Designer, which then are hooked through events.
Good luck with your programming adventures!
Ubuntu Kung Fu might be a good start.
Java development is something you can do with ease using Eclipse on Linux. PHP development is more or less the same as on Windows. Use a good text editor to write the PHP scripts.
Installing the required tools might differ from how it's done on Windows, but both PHP and Eclipse are available as packages in Ubuntu.
If I was to recommend one thing, it would be that you must learn to love the shell. It takes time to feel at home in, but it's well worth it.
On a related theme - You might want to consider using emacs or vim as your editor, but that's more of a personal preference thing. Some people just like IDE's better.
You should probably focus on PHP, rather than Java. It's easier to get started with and it's much more true to the Linux tradition (Whatever that means) than Java is.
Eclipse should run fine in Ubuntu.
Try some Java development in it to get yourself started.
If you want to get your lamp setup pretty easily, you can take a look at Zend Server Community Edition. http://www.zend.com/products/server/downloads-all
For development eclipse (as suggested above) with PDT (Php development tools) is pretty good http://www.eclipse.org/pdt/. I prefer Netbeans though. You could also use gedit with some plugins see this

Categories

Resources