- Go to http://downloads.jmagick.org/6.3.9/
- Download ImageMagick-6.3.9-0-Q8-windows-dll.exe and jmagick-win-6.3.9-Q8.zip.
- Install the exe file. This will install ImageMagick which is a prerequisite for JMagick to work.
- Extract the zip file. This will give jmagick.dll and jmagick.jar
- Copy the jmagick.jar to you lib folder and include it in the classpath
- Copy the jmagick.dll to the root installation directory of ImageMagic and add it as an entry to the PATH environment variable
Friday, March 15, 2013
jmagick configuration
Tuesday, March 5, 2013
xmlbeans runtime error NoSuchMethodError
You might get this run time error when you have two copies of proj-xmlbeans.jar on your classpath, one of which is a old one.
check your APP-INF directory. In my case, APP-INF is the culprit. It has the new generated xmlbeans version and the old one as well.
Friday, December 14, 2012
Weblogic start up problems
weblogic.security.service.SecurityServiceRuntimeException: [Security:090399]Security Services Unavailable
Was the weblogic admin password changed in boot.properties?
If yes, then rename boot.properties (/Servers/AdminServer/security) to something else and try to start the server now. You can check for the logs under DOMAIN_DIR/Severs/AdminServer/log
If it doesn't work, try to rename ldap directory (DOMAIN_HOME/Severs/AdminServer/data/ldap) and then try to start the server.
Was the weblogic admin password changed in boot.properties?
If yes, then rename boot.properties (/Servers/AdminServer/security) to something else and try to start the server now. You can check for the logs under DOMAIN_DIR/Severs/AdminServer/log
If it doesn't work, try to rename ldap directory (DOMAIN_HOME/Severs/AdminServer/data/ldap) and then try to start the server.
Tuesday, October 25, 2011
Timestamp problem with SQL Developer
SQL developer doesn't display timestamp for any query result.
Simple Fix:
In Oracle SQLDeveloper Go to: Tools >> Preferences >> Database > NLS Parameters and update your Date Format field to DD-MON-RR HH:MI:SS value
Simple Fix:
In Oracle SQLDeveloper Go to: Tools >> Preferences >> Database > NLS Parameters and update your Date Format field to DD-MON-RR HH:MI:SS value
Wednesday, August 10, 2011
toArray() class cast exception
List<Record> recordsList = new ArrayList<Record>(2);
...
Record[] records = (Record[]) recordsList.toArray() ; //incorrect
Record[] records = (Record[]) recordsList.toArray(new Record[2]); //correct
Why Class cast exception ?
Recall that a Collection can contain objects of vastly different types. There's no 'general' rule that objects in a Collection must all be of the exact same type. So when toArray() is being calling, it allocates a typed array Object[] which has no sub-classes defined. Therefore casting it to any form such as (Record[]), will not work.
toArray() method can't see your cast so you have to tell it what kind of array to make.
Friday, May 20, 2011
create a folder structure outside of your application directory
private static final String UPLOAD_DIRECTORY = "uploads/img/"+now;
Date date = new Date() ;
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy_MM_dd") ;
String now = dateFormat.format(date);
File uploadsFolder = new File(UPLOAD_DIRECTORY);
uploadsFolder.mkdirs();
File uploadedFile = new File(uploadsFolder, "fileName");
Replace Back slash with forward slash
String location = "uploads\img";
String backslash= System.getProperty(
location.replace(backslash, or
location.replace("\\", "/");"/");"file.separator") ;
Subscribe to:
Posts (Atom)