Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Help please - using the launching framework
Help please - using the launching framework [message #22078] Tue, 13 May 2003 23:27
Eclipse UserFriend
Originally posted by: purplehayz.earthlink.net

> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--B_3135695256_7394900
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit

I'm writing my first view - it shows the system properties. However, I'm
using MacOS X which means my programs run in 1.4.1 but eclipse runs in
1.3.1. So, I want to get the properties from a 1.4.1 virtual machine, which
is what the launching framework is all about.

Unfortunately, a VM starts that is the proper one but the class doesn't -
could it be that I need to put my class on the classpath (I get no error
messages, which mystifies me)? If so, how?

Also, any pointers to code in eclipse that implements copy would be great -
being able to copy a cell of the table would make it more useful (so you
could paste the item or value into code for example).

I'll post this sucker to my web site when it works BTW in case anyone wants
a copy - I hope to do the installation deal so you can update using the
manager (I want to know how that works too).

Thanks and have fun! - Bob


--
Bob Hays, Computer Geek

"In this world you must be oh so smart or oh so pleasant. Well, for years I
was smart. I recommend pleasant."
-- Elwood P. Dowd as played by James Stewart in Harvey


--B_3135695256_7394900
Content-type: application/octet-stream; name="SystemPropertiesView.java"
Content-disposition: attachment
Content-transfer-encoding: base64

cGFja2FnZSBuZXQuYWxlcGhuYXVnaHQuZWNsaXBzZS5zeXN0ZW1wcm9wZXJ0 aWVzLnZpZXdz
OwoKaW1wb3J0IGphdmEudXRpbC5WZWN0b3I7CgppbXBvcnQgb3JnLmVjbGlw c2UuamR0Lmxh
dW5jaGluZy5KYXZhUnVudGltZTsKaW1wb3J0IG9yZy5lY2xpcHNlLmpkdC5s YXVuY2hpbmcu
TGlicmFyeUxvY2F0aW9uOwppbXBvcnQgb3JnLmVjbGlwc2UuamR0LmxhdW5j aGluZy5JVk1J
bnN0YWxsOwppbXBvcnQgb3JnLmVjbGlwc2UuamR0LmxhdW5jaGluZy5JVk1J bnN0YWxsVHlw
ZTs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cygpCgl7CgkJX3ZpZXdlci5nZXRDb250 cm9sKCkuc2V0
Rm9jdXMoKTsKCX0KCglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdb XSBhcmdzKQoJ
ewoJCS8vIFRPRE86IFB1dCB0aGUgcmlnaHQgZ3V0cyBpbiBoZXJlIHRvIGdl dCB0aGUgZGF0
YSB3ZSBuZWVkLgoJCXRyeQoJCXsKCQkJamF2YS5pby5GaWxlT3V0cHV0U3Ry ZWFtIHN0cmVh
bSA9IG5ldyBqYXZhLmlvLkZpbGVPdXRwdXRTdHJlYW0oIi9ob21lL2JoYXlz L3Rlc3QuZGF0
Iik7CgkJCXN0cmVhbS53cml0ZSgnYycpOwoJCQlzdHJlYW0uY2xvc2UoKTsK CQl9CgkJY2F0
Y2ggKEV4Y2VwdGlvbiBlKQoJCXsKCQkJZS5wcmludFN0YWNrVHJhY2UoKTsK CQl9CgkJU3lz
dGVtLmV4aXQoMCk7Cgl9CgoJcHJpdmF0ZSBUYWJsZVZpZXdlciBfdmlld2Vy OwoJcHJpdmF0
ZSBDbGlwYm9hcmQgX2NsaXBib2FyZDsKfQo=

--B_3135695256_7394900--
Previous Topic:refactoring into nested class
Next Topic:Project From CVS not showing in Java View
Goto Forum:
  


Current Time: Fri Dec 27 01:18:25 GMT 2024

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

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

Back to the top