Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Korol Bloom

Ranch Hand
+ Follow
since Jan 13, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Korol Bloom

Sorry, I did not make it to Bengaluru. I had an appointment with my girlfriend in Mumbai, but she was repelled at the border and sent back to London. Her visa (multiple entry) had required her to stay away from India for at least two month after her first visit, and it were only 5 weeks. She didn't know the regulation, and the airline didn't check her passport carefully on check in. So -- she was trapped at Mumbai airport, deprived from drinking water, no telephone, and had to go back London. A really bad experience.

The German embassy said, that this regularly happens. So why the Indian government invents such special regulations? Do they want to trap foreigners on Indian airports? I hope, the regulations will soon be reworked. At least, the immigration officers could be so friendly to offer water and phone calls.

So, we had to change our plans and spent three weeks in Sri Lanka. Did not need any visa to enter there. It ment about 1000EUR additional flight costs for us, but we had a good time on the island :-)
I mean, we could have had a good time in India, too, but if India doesn't want us...
8 years ago
Wow, it feels so weird to stumble upon this old forum post of mine. Like a time warp. But really cool, how the internet can preserve. And very cool forum, by the way!

Well, actually I am not in India now, but in Nepal (travelling). I did not work in India, but in China. Not in the IT, but in the automotive. So I slightly missed the goal, or say it: the initial dream shifted towards pragmatism, when opportunities arose.
(just to share this outcome with you folks, in case you are interested in time warps, too)

About Bangalore -- well let's see. I may be there in December.
8 years ago
Sorry, folks. I got confused by too many singleton patterns. The instance of the Applet was an instance not created by the browser, but by a constructor-call from my code. So it had no appletstub attached...

+++ kinnla
14 years ago
Hi,

I experience a NullPointerException inside the Applet.getCodeBase() method, when I start my applet from the filesystem. When i start the applet from the webbrowser, everything is fine. I am using firefox.

The behaviour I expected: The returned URL points to the directory, that was passed as param "codebase" to the applet from the browser.

Here is my stacktrace:
java.lang.NullPointerException
at java.applet.Applet.getCodeBase(Unknown Source)
at eniac.AppletStarter.openStream(AppletStarter.java:113)
at eniac.util.EProperties.<init>(EProperties.java:28)
at eniac.util.EProperties.getInstance(EProperties.java:41)
at eniac.AppletStarter.init(AppletStarter.java:42)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
14 years ago
I had a problem once with a missed stop(), that was related to the use of the singleton pattern and synchronization. The browser's call of stop() caused a kind of deadlock blocking my applet.

, korol
15 years ago
Hi,

I am writing a Java-Swing application for my company. We are planning to integrate it into an existing Software (a kind of IDE) written in C#, that offers a plugin-interface.

How can this integration be done? Is JNI the right path, or are there any adapter framworks from the M$-side supporting this interoperability?

thx for any hint,

, korol
15 years ago
I also have to deal with Java-dotnet integration and stepped across JuggerNET. Does anyone have experience with these software?

thx,

, korol
15 years ago
hm, no problem any more. Without any clue, I just deleted the eclipse directory and unzipped the zip-file again -- and now it works. A miracle happened!

,korol
Hi Nick,

do you write a program for the Sun-Plugin specificly (JRE >= 1.2) or for Java 1.1.x? In the first case, you have to
a) sign your applet,
b) include a SecurityManager into your Code.
The 2nd case is more complicated, because M$VM and Sun VM (and probably Symantec VM of Netscape 4) use different Security mechanisms.

a)
I found these lines on the web and don't know, how they work, but they work.


b)
Include this into any class. Before you do your local file access, call isPrivileged(). This method returns true, if the user granted file access (that means, he accepted the applet's certificate).

hope, this helps.

,korol
[ August 29, 2004: Message edited by: Korol Bloom ]
15 years ago
oops, forgot logfile contents:

!SESSION Aug 28, 2004 16:40:54.411 ---------------------------------------------
eclipse.buildId=I200406251208
java.version=1.4.2_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE

!ENTRY org.eclipse.osgi Aug 28, 2004 16:40:54.418
!MESSAGE Startup error
!STACK 1
java.lang.RuntimeException: Exception while creating System Bundle: Unable to find system bundle manifest file.
at org.eclipse.osgi.framework.internal.core.Framework.createSystemBundle(Framework.java:253)
at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:152)
at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:95)
at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90)
at org.eclipse.osgi.framework.internal.core.OSGi.<init>(OSGi.java:31)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:215)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
!SESSION Sat Aug 28 16:40:54 CEST 2004 -----------------------------------------
!ENTRY org.eclipse.core.launcher 4 0 Aug 28, 2004 16:40:54.446
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NullPointerException
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:138)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
Hi,

I hardly can see the splash-screen, then my Eclipse crashs. I am using the 3.0 Release Linux GTK, tried Java versions 1.4.2_03, 1.4.2_05 and 1.5.0 -- all the same. My stacktrace looks similar to the one posted at:
https://coderanch.com/t/102833/vc/Eclipse-startup-Errors-no-clues
but they are not completely the sameslightly differ. According to the tip in these post I start eclipse whith the command
but it doesn't help.

Any clue? Thanks in advance!

, korol
Hi,
Someone knows, which year version 5.0 of the Microsoft VM was released? I need this for my examn. I also need to know, which was the latest version of symantec's VM and when it was released.
korol
16 years ago
Hi,
My application includes internationalization support for several languages. At startup, I read the system property "user.language" to get the user's default language. That works fine.
I also have a button, where one can change the language. Changing language means, another bundle is loaded. That also works fine.
For several dialogs I use JOptionPane.showInputDialog() and other methods from the same class. The words at the buttons (like "ok", "cancel") should be displayed according to the user's language choice. But they are not, that is my problem.
I tried JComponent.setDefaultLocale(locale) and that works fine for eg Locale.JAPANESE or Locale.FRENCH. But if I change to LOCALE.ENGLISH or .US or .UK, I still get the buttons shown in my default locale, which is GERMAN. Why that?
I also tried System.setProperty("user.language", "en"), but this makes no difference. Anybody knows this phenomenon? Or have an idea for a workaround?
, korol
16 years ago
ok, it seems to be easy:

, korol
16 years ago
Hello Thay,
and welcome to the ranch! So you have school today? Over here in Germany we have Easter holyday -- no school, no job, shops are closed.
Well, the apropriate listener for a JList is a ListSelectionListener. If you add this to the jlist, you will receive an event, whenever an item is selected or deselected. Is that the actoin you want to trigger? I don't know how to remove an item from the list, maybe you cannot.
Which kind of jframe you are talking about. Is it this one? javax.swing.JFrame
It exists!
, korol
16 years ago