In an Eclipse JAVA project I have to save data to a zip file to reduce disk (memory) usage. I am sending my code. It does not run on Windows 7 professional laptop. Do you have a sample code that runs on both OS X and Windows?
There are several good solutions on the Net (google or bing for it). Look for file access rights or misspelled file name when your code does not work. From within your Java applications you can execute data compression and decompression conveniently by using the java.util.zip
package. A sample code is here:
Continue reading Save data to ZIP file in Java app for OS X, Windows and Android platforms →
I’ve just read your post of “Backup mySQL database with Java desktop or Android application” but you have not given us a sample how to backup store procedures from the database. Can it be done?
Yes. We can dump stored procedures and triggers as well. The previous post is here: http://www.weston-fl.com/blog/?p=2288
backups by default all the triggers but not the stored procedures (functions). There are two mysqldump parameters that we must pay attention to: -routines
. The –triggers is set to true
by default. Add only the –routines command line parameter to the argument list to backup the triggers and stored procedures as well.
For details look at the mysqldump options:
Continue reading Backup mySQL stored procedures in Java application →
I’m developing a Java application
with Eclipse which must be running on iMac, MacBook Pro and Windows 7 metals and may be on Android devices. One of the options is to let my user save his mySQL database with a click.
I’m using mySQL 5 on a remote server. I want a very simple utility code to backup the database and store it in the specified folder location. I am stuck with my code as it does not run on Windows as expected. Can any one help me.
Continue reading Backup mySQL database with Java desktop or Android application →
I am a long time Mac (Xcode) programmer. My client wants me to build and distribute an Android version of the latest iPhone app that she has ordered from me, but I am a little bit uncertain. iPhone app uses the language of objective-C and the Android apps are built in Java, ergo Xcode is not the answer. I have some experiences with NetBeans Integrated Development Environment (IDE) but I heard that it is not the best choice. What tool do you recommend for an iPhone programmer?
Continue reading What tool to use to develop Android applications →
I downloaded the latest Netbeans 7 beta from netbeans.org and installed into my MacBook Pro. This Apple machine has Snow Leopard, dual core CPU, 2GB RAM and a lot of free spaces on its hard disk. When I change a letter A to B in my code or I am just doing nothing except staring at my code, seemingly without any good reason, NetBeans starts to scan my java projects for a few minutes and slows down the Mac so badly I cannot use it. The CPU usage is well over the roof of our appartmant and the hard disk goes tropical heat. Is it a beta issue? Should I switched to Eclipse? How to stop project scanning?
Continue reading NetBeans 7 (beta) is very slow on OS X →
After downloading Netbeans 7 Beta I am getting “cannot find symbol : constructor Service (java .net .URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature)” error from the compiler. I have never seen this before. The code was built without errors in NetBeans 6.9.1. I am running NetBeans on Mac OSX 10.6.5 and building a desktop swing application.
Continue reading Cannot find symbol : constructor Service (,,,) error when using Java IDE Netbeans →