Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Windows 7 64bits RCP Error in Galileo(Windows 7 64bits RCP Error Related to SWT in Galileo)
Windows 7 64bits RCP Error in Galileo [message #557372] Tue, 07 September 2010 07:49 Go to next message
Jungmuk Lim is currently offline Jungmuk LimFriend
Messages: 6
Registered: October 2009
Junior Member
My development environment is as follows:

OS: Windows 7 64bits
JDK: JDK 1.6.21 32bits
Eclipse: Galileo 32bits

I'm developing RCP in Galileo and then there is some problem in Plug-in Dependencies.

There is no org.eclipse.swt.win32.win32.x86_3.5.2.v3557f.jar.

What's wrong with my environment?

Eclipse is running, so I can assume that the SWT is working, right?

Please help me.

Thanks in advance.
Re: Windows 7 64bits RCP Error in Galileo [message #557382 is a reply to message #557372] Tue, 07 September 2010 08:49 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 07.09.2010 09:49, Jungmuk Lim wrote:
> My development environment is as follows:
>
> OS: Windows 7 64bits
> JDK: JDK 1.6.21 32bits
> Eclipse: Galileo 32bits
>
> I'm developing RCP in Galileo and then there is some problem in Plug-in
> Dependencies.
>
> There is no org.eclipse.swt.win32.win32.x86_3.5.2.v3557f.jar.
>
> What's wrong with my environment?
>
> Eclipse is running, so I can assume that the SWT is working, right?

Where precisely does the error occur? Is it an compile-time error
within your workspace or is it an error that occurs when launching
the RCP app from Eclipse?

In the latter situation you need to open the run/debug launch
configuration and you need to select the 64 bit version of SWT
that should be part of the bundles listed there.

HTH & Greetings from Bremen,

Daniel Krügler
Re: Windows 7 64bits RCP Error in Galileo [message #557394 is a reply to message #557382] Tue, 07 September 2010 09:30 Go to previous messageGo to next message
Jungmuk Lim is currently offline Jungmuk LimFriend
Messages: 6
Registered: October 2009
Junior Member
First, thank you for your replay and sorry that the error information was not complete.

The error is compile-time error.

One of the errors is as follows:

The import org.eclipse.swt.SWT cannot be resolved

I guess all classes related SWT are not loaded.

I found that org.eclipse.swt.win32.win32.x86_3.5.2.v3557f.jar is missing in 'Plug-in Dependencies' in 'Package Explorer' view.

My question was why the jar (org.eclipse.swt.win32.win32.x86_3.5.2.v3557f.jar) is not loaded.

I guess my development environment which I previously mentioned makes the problem.

Please any advice.
Re: Windows 7 64bits RCP Error in Galileo [message #557425 is a reply to message #557394] Tue, 07 September 2010 11:29 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 07.09.2010 11:30, Jungmuk Lim wrote:
> First, thank you for your replay and sorry that the error information
> was not complete.
>
> The error is compile-time error.
>
> One of the errors is as follows:
>
> The import org.eclipse.swt.SWT cannot be resolved
>
> I guess all classes related SWT are not loaded.
>
> I found that org.eclipse.swt.win32.win32.x86_3.5.2.v3557f.jar is missing
> in 'Plug-in Dependencies' in 'Package Explorer' view.
>
> My question was why the jar
> (org.eclipse.swt.win32.win32.x86_3.5.2.v3557f.jar) is not loaded.
>
> I guess my development environment which I previously mentioned makes
> the problem.
>
> Please any advice.

The reason could be that your 32-bit Eclipse is started by some 64-bit
Java available in your system. To prevent this, insert an entry

-vm
/Absolute-path-of-your-32-bit-Java-bin-dir/

just before the hopefully existing

-vmargs

entry in the eclipse.ini. E.g.

-vm
C:/Program Files/Java/jdk1.6.0_21/bin

Watch out that the line break shown above *is* important.

HTH & Greetings from Bremen,

Daniel Krügler
Re: Windows 7 64bits RCP Error in Galileo [message #557441 is a reply to message #557425] Tue, 07 September 2010 12:49 Go to previous messageGo to next message
Jungmuk Lim is currently offline Jungmuk LimFriend
Messages: 6
Registered: October 2009
Junior Member
Thanks again for your reply, Daniel.

But actually I've already added the 'vm' option.

Because when there is no 'vm' option, as you mentioned, the Eclipse finds the 64bits JVM, so the 32bits Galileo doesn't start.

So I added 'vm' option with 32bits JDK path and then the Eclipse is working.

But RCP project which is created by wizard has the errors as I previously described.
Re: Windows 7 64bits RCP Error in Galileo [message #557464 is a reply to message #557441] Tue, 07 September 2010 13:43 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 07.09.2010 14:49, Jungmuk Lim wrote:
> Thanks again for your reply, Daniel.
>
> But actually I've already added the 'vm' option.
>
> Because when there is no 'vm' option, as you mentioned, the Eclipse
> finds the 64bits JVM, so the 32bits Galileo doesn't start.
>
> So I added 'vm' option with 32bits JDK path and then the Eclipse is
> working.
>
> But RCP project which is created by wizard has the errors as I
> previously described.

a) Check your Eclipse Preferences, look for

Java>Installed JREs

and ensure that only the correct 32-bit JRE is selected

Also you should validate out your project settings, it might depend on
those:

1) Ensure that Platform filters in the Manifest.mf don't refer to the
incorrect windows version
2) Ensure that in the launching arguments (Tab "Launching") of your
..product file (if you have one) you don't refer to the incorrect windows
version
3) Open your run configuration wizard and ensure that the corresponding
launch config of your RCP app does not refer to environment variables
like so:

-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}

because those will probably refer to the wrong windows version during
runtime and will prevent that swt.32 will be started.

4) If you have features, verify that they don't refer to the incorrect
windows version for specific plugins.

I assume that bullet 4 was the actual reason of the problem.

HTH & Greetings from Bremen,

Daniel Krügler
Re: Windows 7 64bits RCP Error in Galileo [message #557533 is a reply to message #557464] Wed, 08 September 2010 02:05 Go to previous messageGo to next message
Jungmuk Lim is currently offline Jungmuk LimFriend
Messages: 6
Registered: October 2009
Junior Member
1. My MANIFEST.MF which is created by wizard has no entity related to any platform except the following entity:

Bundle-RequiredExecutionEnvironment: JavaSE-1.6

It seems okay.

2. My project which created by wizard has no product configuration file.

3. There is no run configuration because my project has compile-time error.

4. Actually I've already checked it in 'Dependency Analysis' on 'Dependencies' tab in 'plugin.xml'.

RcpExample (1.0.0.qualifier)
+- org.eclipse.core.runtime (3.5.0.v20090525)
+- org.eclipse.ui (3.5.2.M20100120-0800)
>> +- org.eclipse.core.expressions (3.4.101.R35x_v20100209)
>> +- org.eclipse.core.runtime (3.5.0.v20090525)
>> +- org.eclipse.jface (3.5.0.M20100120-0800)
>> +- org.eclipse.swt (3.5.2.v3557f)
>>>> +- org.eclipse.swt.win32.win32.x86 (3.5.2.v3557f)
>> +- org.eclipse.ui.workbench (3.5.2.M20100113-0800)


But my project's 'Plug-in Dependencies' in 'Package Explorer' doesn't have the 'org.eclipse.swt.win32.win32.x86 (3.5.2.v3557f)'.

I guess my problem can be solved if the 'org.eclipse.swt.win32.win32.x86 (3.5.2.v3557f)' appears in my project's 'Plug-in Dependencies' in 'Package Explorer'.

Sorry if my poor English or explanation makes you misunderstand.

And I appreciate your advice even though my problem isn't solved yet Smile

[Updated on: Wed, 08 September 2010 02:08]

Report message to a moderator

Re: Windows 7 64bits RCP Error in Galileo [message #557588 is a reply to message #557533] Wed, 08 September 2010 08:10 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 08.09.2010 04:05, Jungmuk Lim wrote:
> 4. Actually I've already checked it in 'Dependency Analysis' on
> 'Dependencies' in 'plugin.xml'.
>
> RcpExample (1.0.0.qualifier)
> +- org.eclipse.core.runtime (3.5.0.v20090525)
> +- org.eclipse.ui (3.5.2.M20100120-0800)
> +- org.eclipse.core.expressions (3.4.101.R35x_v20100209)
> +- org.eclipse.core.runtime (3.5.0.v20090525)
> +- org.eclipse.jface (3.5.0.M20100120-0800)
> +- org.eclipse.swt (3.5.2.v3557f)
> +- org.eclipse.swt.win32.win32.x86 (3.5.2.v3557f)
> +- org.eclipse.ui.workbench (3.5.2.M20100113-0800)
>
> But my project's 'Plug-in Dependencies' in 'Package Explorer' deesn't
> have the 'org.eclipse.swt.win32.win32.x86 (3.5.2.v3557f)'.
>
> I guess my problem can be solved if the 'org.eclipse.swt.win32.win32.x86
> (3.5.2.v3557f)' appears in my project's 'Plug-in Dependencies' in
> 'Package Explorer'.

I guess so, but this defect looks completely odd to me. Have you had a
previous or a parallel Eclipse version installed on your system? I
remember now that there are some problems on Windows 7, because the
implicit assumption of Eclipse is, that it can write in it's
installation directory. It does do that to create a binary (or at least
quick-access) bundle-cache. Checkout the .eclipse directory that should
exist in your Windows User directory. If this .eclipse directory
contains more than the org.eclipse.equinox.security directory, you
should manually delete any other directory (but close Eclipse before
doing so). After this restart Eclipse and verify that your problem
still exists.

If all fails, you should

a) try a fresh Eclipse start with - clean, or
b) clean the affected project and it's dependencies via

Project>Clean...

or
c) close and reopen the project or,
d) open the Problems view and delete all error entries and then clean
and rebuild your project again.

Otherwise I have no idea.

HTH & Greetings from Bremen,

Daniel Krügler
Re: Windows 7 64bits RCP Error in Galileo [message #557849 is a reply to message #557588] Thu, 09 September 2010 08:38 Go to previous message
Jungmuk Lim is currently offline Jungmuk LimFriend
Messages: 6
Registered: October 2009
Junior Member
The problem is solved by changing workspace.

I don't know which part has made the problem yet.

Thanks for all of your advices and efforts Smile
Previous Topic:Problem in setFocus in editor.
Next Topic:Opening an editor / view (SWT) without loading eclipse
Goto Forum:
  


Current Time: Wed Dec 04 10:50:02 GMT 2024

Powered by FUDForum. Page generated in 0.03425 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top