Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / June 2005

Tip: Looking for answers? Try searching our database.

What's the recommended way to embed (c), version, TM, etc in a class file?

Thread view: 
Al Koch - 25 Jun 2005 04:48 GMT
Hello,

I'd like to embed information such as Version #, TM, (c), etc. into my cass
files.  I guess I can simply place these in a string in the .java file and
it will end up in the class file but I am wondeing if there is a
"better/recommended" way to do this.  In the Microsoft C++ world there is a
"Resource file" that contains such information and it gets built into the
final binary executable.  How's this done in the Java world?

Thanks,
Al,
AlKoch@MyRealBoxREMOVEALLTHESECHARS.com
Stefan Schulz - 25 Jun 2005 15:09 GMT
> Hello,
>
[quoted text clipped - 4 lines]
> "Resource file" that contains such information and it gets built into the
> final binary executable.  How's this done in the Java world?

You can either include it as strings in your source, or use a classfile
annotation

Signature

You can't run away forever,
But there's nothing wrong with getting a good head start.
          --- Jim Steinman, "Rock and Roll Dreams Come Through"
         

Al Koch - 25 Jun 2005 18:59 GMT
Hi Stefan,

> You can either include it as strings in your source, or use a classfile
> annotation

I didn't know about classfile annotation.  A web search reyurns only a meger
number of references but I can't find anything that actually describes this
or tells me how to implement it.  Is this just a design concept/pattern or
is it genertaed by a tool.  Would you be so kind as to give me a little more
information on this?

Thanks.
Al,
AlKoch@MyRealBoxREMOVEALLTHESECHARS.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.