Discussion:
How to make preprocessing function work if I start eclipseME from its source code
Raymond Qiu
2008-05-30 19:41:05 UTC
Permalink
Hey,



I am a newby of eclipseME. I downloaded its source code; imported them

as projects into my eclipse workspace; made the change on
configuration.ini;

started a eclipse sdk application; created a simple J2ME Midlet project
and

ran it. The preprocessing function did not seem to work. However, I
installed

eclipseME binary version into another copy of eclipse, the preprocessing


function worked. Any thought?



Thanks.

---------------------

Raymond




---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
Raymond Qiu
2008-06-02 16:04:18 UTC
Permalink
Well, I just found that there is a readme.txt file in the source code
which states how to

invoke the preprocessing founction. It says:



Development

===========

To run under development:

1) Import the org.eclipse.osgi plugin into the workspace with source
folders

2) Set the VM argument
"-Dosgi.framework.extensions=eclipseme.core.hooks"

3) Disable the platform org.eclipse.osgi and use the imported workspace
version



I don't know in step 3), how can I disable the platform
org.eclipse.osgi?



Thanks.



- Raymond

________________________________

From: eclipseme-users-***@lists.sourceforge.net
[mailto:eclipseme-users-***@lists.sourceforge.net] On Behalf Of
Raymond Qiu
Sent: Friday, May 30, 2008 3:41 PM
To: eclipseme-***@lists.sourceforge.net
Subject: [Eclipseme-users] How to make preprocessing function work if
Istart eclipseME from its source code



Hey,



I am a newby of eclipseME. I downloaded its source code; imported them

as projects into my eclipse workspace; made the change on
configuration.ini;

started a eclipse sdk application; created a simple J2ME Midlet project
and

ran it. The preprocessing function did not seem to work. However, I
installed

eclipseME binary version into another copy of eclipse, the preprocessing


function worked. Any thought?



Thanks.

---------------------

Raymond



---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute
non-public information. Any use of this information by anyone other than
the intended recipient is prohibited. If you have received this
transmission in error, please immediately reply to the sender and delete
this information from your system. Use, dissemination, distribution, or
reproduction of this transmission by unintended recipients is not
authorized and may be unlawful.


---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
Craig Setera
2008-06-08 15:44:28 UTC
Permalink
I apologize for not getting back to you sooner... Things have been
really hectic for me lately.

The answer to your question is that you need to control the plugins that
are loaded into the runtime workspace instance that gets launched. This
is controlled via the launch dialog for each launch configuration.

Hope that helps,
Craig
Post by Raymond Qiu
Well, I just found that there is a readme.txt file in the source code
which states how to
Development
===========
1) Import the org.eclipse.osgi plugin into the workspace with source
folders
2) Set the VM argument "-Dosgi.framework.extensions=eclipseme.core.hooks"
3) Disable the platform org.eclipse.osgi and use the imported
workspace version
I don’t know in step 3), how can I disable the platform org.eclipse.osgi?
Thanks.
- Raymond
------------------------------------------------------------------------
*Raymond Qiu
*Sent:* Friday, May 30, 2008 3:41 PM
*Subject:* [Eclipseme-users] How to make preprocessing function work
if Istart eclipseME from its source code
Hey,
I am a newby of eclipseME. I downloaded its source code; imported them
as projects into my eclipse workspace; made the change on
configuration.ini;
started a eclipse sdk application; created a simple J2ME Midlet
project and
ran it. The preprocessing function did not seem to work. However, I
installed
eclipseME binary version into another copy of eclipse, the preprocessing
function worked. Any thought?
Thanks.
---------------------
/*/Raymond/*/
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute
non-public information. Any use of this information by anyone other
than the intended recipient is prohibited. If you have received this
transmission in error, please immediately reply to the sender and
delete this information from your system. Use, dissemination,
distribution, or reproduction of this transmission by unintended
recipients is not authorized and may be unlawful.
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute
non-public information. Any use of this information by anyone other
than the intended recipient is prohibited. If you have received this
transmission in error, please immediately reply to the sender and
delete this information from your system. Use, dissemination,
distribution, or reproduction of this transmission by unintended
recipients is not authorized and may be unlawful.
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------------------
_______________________________________________
Eclipseme-users mailing list
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Raymond Qiu
2008-06-09 18:25:36 UTC
Permalink
Thanks for you answer Craig.
I made it work. :-)


Raymond

-----Original Message-----
From: eclipseme-users-***@lists.sourceforge.net
[mailto:eclipseme-users-***@lists.sourceforge.net] On Behalf Of
Craig Setera
Sent: Sunday, June 08, 2008 11:44 AM
To: eclipseme-***@lists.sourceforge.net
Subject: Re: [Eclipseme-users] How to make preprocessing function work
if Istart eclipseME from its source code

I apologize for not getting back to you sooner... Things have been
really hectic for me lately.

The answer to your question is that you need to control the plugins that

are loaded into the runtime workspace instance that gets launched. This
is controlled via the launch dialog for each launch configuration.

Hope that helps,
Craig
Post by Raymond Qiu
Well, I just found that there is a readme.txt file in the source code
which states how to
Development
===========
1) Import the org.eclipse.osgi plugin into the workspace with source
folders
2) Set the VM argument
"-Dosgi.framework.extensions=eclipseme.core.hooks"
Post by Raymond Qiu
3) Disable the platform org.eclipse.osgi and use the imported
workspace version
I don't know in step 3), how can I disable the platform
org.eclipse.osgi?
Post by Raymond Qiu
Thanks.
- Raymond
------------------------------------------------------------------------
Post by Raymond Qiu
*Raymond Qiu
*Sent:* Friday, May 30, 2008 3:41 PM
*Subject:* [Eclipseme-users] How to make preprocessing function work
if Istart eclipseME from its source code
Hey,
I am a newby of eclipseME. I downloaded its source code; imported them
as projects into my eclipse workspace; made the change on
configuration.ini;
started a eclipse sdk application; created a simple J2ME Midlet
project and
ran it. The preprocessing function did not seem to work. However, I
installed
eclipseME binary version into another copy of eclipse, the
preprocessing
Post by Raymond Qiu
function worked. Any thought?
Thanks.
---------------------
/*/Raymond/*/
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute
non-public information. Any use of this information by anyone other
than the intended recipient is prohibited. If you have received this
transmission in error, please immediately reply to the sender and
delete this information from your system. Use, dissemination,
distribution, or reproduction of this transmission by unintended
recipients is not authorized and may be unlawful.
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute
non-public information. Any use of this information by anyone other
than the intended recipient is prohibited. If you have received this
transmission in error, please immediately reply to the sender and
delete this information from your system. Use, dissemination,
distribution, or reproduction of this transmission by unintended
recipients is not authorized and may be unlawful.
------------------------------------------------------------------------
------------------------------------------------------------------------
-
Post by Raymond Qiu
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------------------
Post by Raymond Qiu
_______________________________________________
Eclipseme-users mailing list
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Eclipseme-users mailing list
Eclipseme-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Raymond Qiu
2008-06-19 16:10:01 UTC
Permalink
Craig,

I am pretty interested in the preprocessing function in eclipseme.
I read its code and I am wondering why you used ASM when rewriting
the byte of a java file?

Thanks.

- Raymond

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Raymond Qiu
2008-06-19 18:12:16 UTC
Permalink
In other words, why don't you use eclipse DOM/AST?

- Raymond

-----Original Message-----
From: eclipseme-users-***@lists.sourceforge.net
[mailto:eclipseme-users-***@lists.sourceforge.net] On Behalf Of
Raymond Qiu
Sent: Thursday, June 19, 2008 12:10 PM
To: eclipseme-***@lists.sourceforge.net
Subject: [Eclipseme-users] A question about the preprocessing hook

Craig,

I am pretty interested in the preprocessing function in eclipseme.
I read its code and I am wondering why you used ASM when rewriting
the byte of a java file?

Thanks.

- Raymond

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute
non-public information. Any use of this information by anyone other than
the intended recipient is prohibited. If you have received this
transmission in error, please immediately reply to the sender and delete
this information from your system. Use, dissemination, distribution, or
reproduction of this transmission by unintended recipients is not
authorized and may be unlawful.

------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Eclipseme-users mailing list
Eclipseme-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Setera Craig
2008-06-19 18:17:18 UTC
Permalink
I didn't write the actual preprocessor... I had one originally that I
removed in favor of the one written for the Antenna tools. Obviously,
Antenna doesn't want to have a dependency on the Eclipse DOM/AST,
although I know it is somewhat separable.
Post by Raymond Qiu
In other words, why don't you use eclipse DOM/AST?
- Raymond
-----Original Message-----
Raymond Qiu
Sent: Thursday, June 19, 2008 12:10 PM
Subject: [Eclipseme-users] A question about the preprocessing hook
Craig,
I am pretty interested in the preprocessing function in eclipseme.
I read its code and I am wondering why you used ASM when rewriting
the byte of a java file?
Thanks.
- Raymond
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute
non-public information. Any use of this information by anyone other than
the intended recipient is prohibited. If you have received this
transmission in error, please immediately reply to the sender and delete
this information from your system. Use, dissemination, distribution, or
reproduction of this transmission by unintended recipients is not
authorized and may be unlawful.
------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Eclipseme-users mailing list
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
---------------------------------------------------------------------
This transmission (including any attachments) may contain
confidential information, privileged material (including material
protected by the solicitor-client or other applicable privileges),
or constitute non-public information. Any use of this information by
anyone other than the intended recipient is prohibited. If you have
received this transmission in error, please immediately reply to the
sender and delete this information from your system. Use,
dissemination, distribution, or reproduction of this transmission by
unintended recipients is not authorized and may be unlawful.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Eclipseme-users mailing list
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Raymond Qiu
2008-06-20 16:08:49 UTC
Permalink
Craig,

Why did you put the ASM source code into the hook plug-in but not
just use its jar lib? I tried to replace the source files with the
asm.jar. The hook plug-in could be compiled but got some exception
when eclipse started. The log said
" java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor".

Thanks. :-)

- Raymond

-----Original Message-----
From: eclipseme-users-***@lists.sourceforge.net
[mailto:eclipseme-users-***@lists.sourceforge.net] On Behalf Of
Setera Craig
Sent: Thursday, June 19, 2008 2:17 PM
To: eclipseme-***@lists.sourceforge.net
Subject: Re: [Eclipseme-users] A question about the preprocessing hook

I didn't write the actual preprocessor... I had one originally that I
removed in favor of the one written for the Antenna tools. Obviously,
Antenna doesn't want to have a dependency on the Eclipse DOM/AST,
although I know it is somewhat separable.
Post by Raymond Qiu
In other words, why don't you use eclipse DOM/AST?
- Raymond
-----Original Message-----
Raymond Qiu
Sent: Thursday, June 19, 2008 12:10 PM
Subject: [Eclipseme-users] A question about the preprocessing hook
Craig,
I am pretty interested in the preprocessing function in eclipseme.
I read its code and I am wondering why you used ASM when rewriting
the byte of a java file?
Thanks.
- Raymond
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute
non-public information. Any use of this information by anyone other than
the intended recipient is prohibited. If you have received this
transmission in error, please immediately reply to the sender and delete
this information from your system. Use, dissemination, distribution, or
reproduction of this transmission by unintended recipients is not
authorized and may be unlawful.
------------------------------------------------------------------------
Post by Raymond Qiu
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Eclipseme-users mailing list
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
---------------------------------------------------------------------
This transmission (including any attachments) may contain
confidential information, privileged material (including material
protected by the solicitor-client or other applicable privileges),
or constitute non-public information. Any use of this information by
anyone other than the intended recipient is prohibited. If you have
received this transmission in error, please immediately reply to the
sender and delete this information from your system. Use,
dissemination, distribution, or reproduction of this transmission by
unintended recipients is not authorized and may be unlawful.
------------------------------------------------------------------------
-
Post by Raymond Qiu
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Eclipseme-users mailing list
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Eclipseme-users mailing list
Eclipseme-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Setera Craig
2008-06-24 10:43:33 UTC
Permalink
It has been a long time ago, but if I remember correctly it was
necessary due to the way that the OSGi layer loads jar files during
this early phase.
Post by Raymond Qiu
Craig,
Why did you put the ASM source code into the hook plug-in but not
just use its jar lib? I tried to replace the source files with the
asm.jar. The hook plug-in could be compiled but got some exception
when eclipse started. The log said
" java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor".
Thanks. :-)
- Raymond
-----Original Message-----
Setera Craig
Sent: Thursday, June 19, 2008 2:17 PM
Subject: Re: [Eclipseme-users] A question about the preprocessing hook
I didn't write the actual preprocessor... I had one originally that I
removed in favor of the one written for the Antenna tools. Obviously,
Antenna doesn't want to have a dependency on the Eclipse DOM/AST,
although I know it is somewhat separable.
Post by Raymond Qiu
In other words, why don't you use eclipse DOM/AST?
- Raymond
-----Original Message-----
Raymond Qiu
Sent: Thursday, June 19, 2008 12:10 PM
Subject: [Eclipseme-users] A question about the preprocessing hook
Craig,
I am pretty interested in the preprocessing function in eclipseme.
I read its code and I am wondering why you used ASM when rewriting
the byte of a java file?
Thanks.
- Raymond
---------------------------------------------------------------------
This transmission (including any attachments) may contain
confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute
non-public information. Any use of this information by anyone other than
the intended recipient is prohibited. If you have received this
transmission in error, please immediately reply to the sender and delete
this information from your system. Use, dissemination, distribution, or
reproduction of this transmission by unintended recipients is not
authorized and may be unlawful.
------------------------------------------------------------------------
Post by Raymond Qiu
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Eclipseme-users mailing list
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
---------------------------------------------------------------------
This transmission (including any attachments) may contain
confidential information, privileged material (including material
protected by the solicitor-client or other applicable privileges),
or constitute non-public information. Any use of this information by
anyone other than the intended recipient is prohibited. If you have
received this transmission in error, please immediately reply to the
sender and delete this information from your system. Use,
dissemination, distribution, or reproduction of this transmission by
unintended recipients is not authorized and may be unlawful.
------------------------------------------------------------------------
-
Post by Raymond Qiu
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Eclipseme-users mailing list
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Eclipseme-users mailing list
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
---------------------------------------------------------------------
This transmission (including any attachments) may contain
confidential information, privileged material (including material
protected by the solicitor-client or other applicable privileges),
or constitute non-public information. Any use of this information by
anyone other than the intended recipient is prohibited. If you have
received this transmission in error, please immediately reply to the
sender and delete this information from your system. Use,
dissemination, distribution, or reproduction of this transmission by
unintended recipients is not authorized and may be unlawful.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Eclipseme-users mailing list
https://lists.sourceforge.net/lists/listinfo/eclipseme-users
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

Loading...