java-7

Managing upgrades to Java 7

陌路散爱 提交于 2019-12-24 02:28:26
问题 My team uses a lot of Java applications and applets (both internally created and from external sources). Since the release of Java 7, which we are using for some applications, we have found a number of problems with external applications and applets which do not support Java 7 (although I don't know why - however, having spoken to the tech support at the organisations that provide these applications, they indicate that their applications are not compatible with Java 7). Unfortunately, many of

Is there a chance to get -splash:<image> work for SWT applications that require -XstartOnFirstThread?

这一生的挚爱 提交于 2019-12-24 00:14:46
问题 I am launching my Scala SWT application using: java -splash:splash.jpg -jar application.jar Using JDK 1.6.0 on Mac OS X 10.9.1 the splash screen was opened immediately (seconds before the actual application window opened). I used the following code to close the splash screen when the SWT application window opened: // When the window opens for the first time close the splash screen if exists val splash = SplashScreen.getSplashScreen if (splash != null) { shell.addShellListener(new ShellAdapter

file.listFiles() on OpenJDK7 OS X broken on file names that contain a euro symbol

你离开我真会死。 提交于 2019-12-23 20:32:28
问题 It seems that the following file.listFiles() is broken on OpenJDK 7 on OS X. This code snippet will print "This file has a euro symbol...does't exist". final String pathname = System.getProperty("user.home") + "/folderThatContainsAFileWithTheEuroSymbol/"; final File folder = new File(pathname); for (File file : folder.listFiles()) { if (!file.exists()) { System.out.println("This file has a euro symbol in its name, it exists and yet file.exists says it doesn't exist"); } } It seems to be a

java.lang.VerifyError when using emma / Cobertura on JDK 1.7

拟墨画扇 提交于 2019-12-23 15:21:47
问题 I am facing the exact same issue mentioned in the link below when trying to create a build using Apache Buildr. Testng, Emma, Cobertura, coverage and JDK 7 result in ClassFormatError and VerifyError I tried using the -XX:-UseSplitVerifier option(as below) when testing the artifacts but that doesn't resolve my issue. test.using( :java_args => ['-ea','-XX:-UseSplitVerifier']) Error: Instrumenting classes with emma metadata file /test-client/reports/emma/coverage.em JavaTestFilter: Unable to

Cannot launch SQL Developer 4.0.1

≯℡__Kan透↙ 提交于 2019-12-23 13:04:33
问题 Brand new machine, new install of SQL Developer (x64 w/out JRE), when I try to launch sqldeveloper.exe, it gets stuck at about 10%. What logs, if any, should I be looking at for errors? SQL Developer 4.0.1 JDK 1.7.0_55 Windows 7 Professional x64 Edit I ran sqldeveloper64.exe, and hit ctl+pause/break when the launcher started hanging, this is the output: 2014-04-17 10:26:08 Full thread dump Java HotSpot(TM) 64-Bit Server VM (24.55-b03 mixed mode): "Flushing caches" prio=2 tid

java.lang.VerifyError: Expecting a stackmap frame at branch target 73

你离开我真会死。 提交于 2019-12-23 12:44:10
问题 i use jdk 1.7, jekins, maven, when i build the project,the unit test fails, the error is : java.lang.VerifyError: Expecting a stackmap frame at branch target 73 Exception Details: Location: com/DataDictDao.save(Lcom/DataDict;)Ljava/lang/Long; @25: ldc Reason: Expected stackmap frame at this location. Bytecode: 0000000: 033d 11ff ff3e 1212 1100 25b8 0018 2ab4 0000010: 0022 122d b900 3302 0012 1211 0027 b800 0000020: 182a b400 352b b900 3a02 0012 1211 0028 0000030: b800 182a b400 2212 3cb9 0033

Can't export Play! app as war

南楼画角 提交于 2019-12-23 10:28:45
问题 I'm trying to package a Play! app built against Java 7. I'm getting this error. Also, I cannot launch the app from the command line, but from Eclipse it works. D:\Dropbox\eclipseProjectsClassic>play war MyApp -o MyApp.war --zip ~ _ _ ~ _ __ | | __ _ _ _| | ~ | '_ \| |/ _' | || |_| ~ | __/|_|\____|\__ (_) ~ |_| |__/ ~ ~ play! 1.2.3, http://www.playframework.org ~ Listening for transport dt_socket at address: 8000 04:17:03,694 INFO ~ Starting D:\Dropbox\eclipseProjectsClassic\MyApp Exception in

Java : How to return intermediate results from a Thread

。_饼干妹妹 提交于 2019-12-23 09:37:21
问题 Using Java 7 I am trying to build a watcher that watches a data store (some collection type) and then will return certain items from it at certain points. In this case they are time stamps, when a timestamp passes the current time I want it to be returned to the starting thread. Please see code below. @Override public void run() { while (!data.isEmpty()) { for (LocalTime dataTime : data) { if (new LocalTime().isAfter(dataTime)) { // return a result but continue running } } } } I have read

Java Swing - How to handle generics in ActionListener

二次信任 提交于 2019-12-23 09:37:04
问题 I have: class CustomerActionListener implements ActionListener { @Override public void actionPerformed(ActionEvent event) { JComboBox cb = (JComboBox)event.getSource(); .. do something } } Which causes the following compiler warning in jdk7: JComboBox is a raw type. References to generic type JComboBox should be parameterized I've tried to parameterize it to such that: JComboBox<String> cb = (JComboBox<String>)event.getSource(); But this still leaves the following compiler warning: Type

Java 7 to be run in 32 bit on mac

一笑奈何 提交于 2019-12-23 08:53:30
问题 I am building a desktop Java application. It uses a third party framework for some low level work (it is in C and I have used JNA). On my Windows Machine, when I do Native.loadLibrary("EDSDK.dll", EdSdkLibrary.class, options); it works perfectly well. On Mac when I try to do Native.loadLibrary("EDSDK.framework", EdSdkLibrary.class, options); it threw UnsatisfiedLinkError saying: mach-o, but wrong architecture My java 7 version is 64 bit and the framework is 32 bit based. On a different mac