IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

avec Java Discussion :

API java methodes


Sujet :

avec Java

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    133
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2007
    Messages : 133
    Points : 64
    Points
    64
    Par défaut API java methodes
    Salut à tous! comment fais-t-on pour voir les implementations des méthodes qui sont dans l'API java?

  2. #2
    Membre averti
    Profil pro
    Inscrit en
    Mars 2008
    Messages
    338
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Mars 2008
    Messages : 338
    Points : 402
    Points
    402
    Par défaut
    tu télécharge le fichier src.zip qui se trouve dans la distribution jdkxx_xx que tu trouve sur le site de sun. http://java.sun.com/javase/downloads/index.jsp.
    cdlt

  3. #3
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Points : 48 807
    Points
    48 807
    Par défaut
    ou, si tu utiliser un jsk complet et un ide comme eclipse, tu fais "open type (ctrl+shift+t), tu tappe le nom de la classe cherchée et il t'affiche sa source.

  4. #4
    Membre à l'essai
    Profil pro
    Inscrit en
    Avril 2009
    Messages
    10
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Avril 2009
    Messages : 10
    Points : 13
    Points
    13
    Par défaut
    Ou encore dans Eclipse, tu fais un ctrl + click sur la méthode pour arriver dans l'implémentation. Par défaut, tu aura accès aux sources du JDK.

  5. #5
    Membre régulier
    Profil pro
    Inscrit en
    Février 2008
    Messages
    114
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 114
    Points : 83
    Points
    83
    Par défaut
    Bonjour,
    j'ai fait ça mais il me dit que la source est introuvable...

  6. #6
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Points : 48 807
    Points
    48 807
    Par défaut
    tu utilise bien un jdk de sun avec ton eclipse? Eclipse trouve automatiquement les sources dans le jdk. Sinon, c'est probablement parce que tu n'a pas téléchargé la version jsk mais la version javase (sans le compilateur etc)

  7. #7
    Membre régulier
    Profil pro
    Inscrit en
    Février 2008
    Messages
    114
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 114
    Points : 83
    Points
    83
    Par défaut
    oulà!c'est encore trop technique pour moi...
    J'ai téléchargé :
    jdk-6u14-ea-mozilla_headers-b04-windows-i586-01_apr_2009
    ne trouvant pas src.zip sur le lien indiqué.
    Sinon j'ai pas trop compris l'histoire du compilateur..Comment je sais quelle version d'installation j'ai installé?
    Voici le début de mon fichier détails de la configuration si ça vous amuse (pas tout car sinon ça fait planter mon ordi):
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
     
    *** Date : lundi 15 juin 2009 15:31:07 HEC
     
    *** Détails sur la plateforme :
     
    *** Propriétés système :
    awt.toolkit=sun.awt.windows.WToolkit
    eclipse.buildId=M20080911-1700
    eclipse.commands=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    C:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse\\plugins\org.eclipse.platform_3.3.101.v200809111700\splash.bmp
    -launcher
    C:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse\eclipse.exe
    -name
    Eclipse
    --launcher.library
    C:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
    -startup
    C:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
    -framework
    plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
    -vm
    C:\Program Files\Java\jre6\bin\client\jvm.dll
    eclipse.ee.install.verify=false
    eclipse.home.location=file:/C:/Users/emmanuel/Downloads/birt-report-designer-all-in-one-2_3_1/eclipse/
    eclipse.launcher=C:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse\eclipse.exe
    eclipse.p2.data.area=@config.dir/../p2
    eclipse.p2.profile=SDKProfile
    eclipse.product=org.eclipse.platform.ide
    eclipse.startTime=1245072647868
    eclipse.vm=C:\Program Files\Java\jre6\bin\client\jvm.dll
    eclipse.vmargs=-Dosgi.requiredJavaVersion=1.5
    -Xms40m
    -Xmx512m
    -XX:MaxPermSize=256M
    -Djava.class.path=C:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
    file.encoding=Cp1252
    file.encoding.pkg=sun.io
    file.separator=\
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    java.class.path=C:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
    java.class.version=50.0
    java.endorsed.dirs=C:\Program Files\Java\jre6\lib\endorsed
    java.ext.dirs=C:\Program Files\Java\jre6\lib\ext;C:\Windows\Sun\Java\lib\ext
    java.home=C:\Program Files\Java\jre6
    java.io.tmpdir=C:\Users\emmanuel\AppData\Local\Temp\
    java.library.path=C:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Users\emmanuel\Desktop\android-sdk-windows-1.5_r2\android-sdk-windows-1.5_r2\platforms\android-1.5\tools
    java.runtime.name=Java(TM) SE Runtime Environment
    java.runtime.version=1.6.0_11-b03
    java.specification.name=Java Platform API Specification
    java.specification.vendor=Sun Microsystems Inc.
    java.specification.version=1.6
    java.vendor=Sun Microsystems Inc.
    java.vendor.url=http://java.sun.com/
    java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
    java.version=1.6.0_11
    java.vm.info=mixed mode
    java.vm.name=Java HotSpot(TM) Client VM
    java.vm.specification.name=Java Virtual Machine Specification
    java.vm.specification.vendor=Sun Microsystems Inc.
    java.vm.specification.version=1.0
    java.vm.vendor=Sun Microsystems Inc.
    java.vm.version=11.0-b16
    line.separator=
     
    org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
    org.apache.commons.logging.simplelog.defaultlog=off
    org.apache.commons.logging.simplelog.log.httpclient.wire.header=off
    org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient=off
    org.eclipse.equinox.launcher.splash.location=C:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse\\plugins\org.eclipse.platform_3.3.101.v200809111700\splash.bmp
    org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator\bundles.info
    org.eclipse.update.reconcile=false
    org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6
    org.osgi.framework.language=fr
    org.osgi.framework.os.name=WindowsVista
    org.osgi.framework.os.version=6.0.0
    org.osgi.framework.processor=x86
    org.osgi.framework.system.packages=javax.accessibility,javax.activation,javax.activity,javax.annotation,javax.annotation.processing,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.jws,javax.jws.soap,javax.lang.model,javax.lang.model.element,javax.lang.model.type,javax.lang.model.util,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.tools,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.bind,javax.xml.bind.annotation,javax.xml.bind.annotation.adapters,javax.xml.bind.attachment,javax.xml.bind.helpers,javax.xml.bind.util,javax.xml.crypto,javax.xml.crypto.dom,javax.xml.crypto.dsig,javax.xml.crypto.dsig.dom,javax.xml.crypto.dsig.keyinfo,javax.xml.crypto.dsig.spec,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.soap,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stax,javax.xml.transform.stream,javax.xml.validation,javax.xml.ws,javax.xml.ws.handler,javax.xml.ws.handler.soap,javax.xml.ws.http,javax.xml.ws.soap,javax.xml.ws.spi,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,org.w3c.dom.ls,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.traversal,org.w3c.dom.views ,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
    org.osgi.framework.vendor=Eclipse
    org.osgi.framework.version=1.4.0
    org.osgi.supports.framework.extension=true
    org.osgi.supports.framework.fragment=true
    org.osgi.supports.framework.requirebundle=true
    os.arch=x86
    os.name=Windows Vista
    os.version=6.0
    osgi.arch=x86
    osgi.bundles=reference:file:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1:start
    osgi.bundles.defaultStartLevel=4
    osgi.bundlestore=C:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse\configuration\org.eclipse.osgi\bundles
    osgi.compatibility.bootdelegation=true
    osgi.configuration.area=file:/C:/Users/emmanuel/Downloads/birt-report-designer-all-in-one-2_3_1/eclipse/configuration/
    osgi.framework=file:/c:/Users/emmanuel/Downloads/birt-report-designer-all-in-one-2_3_1/eclipse/plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
    osgi.framework.beginningstartlevel=1
    osgi.framework.shape=jar
    osgi.framework.version=3.4.2.R34x_v20080826-1230
    osgi.install.area=file:/C:/Users/emmanuel/Downloads/birt-report-designer-all-in-one-2_3_1/eclipse/
    osgi.instance.area=file:/C:/Users/emmanuel/PTI/
    osgi.instance.area.default=file:/C:/Users/emmanuel/workspace/
    osgi.launcherIni=eclipse
    osgi.launcherPath=.
    osgi.logfile=C:\Users\emmanuel\PTI\.metadata\.log
    osgi.manifest.cache=C:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse\configuration\org.eclipse.osgi\manifests
    osgi.nl=fr_FR
    osgi.os=win32
    osgi.requiredJavaVersion=1.5
    osgi.splashLocation=C:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse\\plugins\org.eclipse.platform_3.3.101.v200809111700\splash.bmp
    osgi.splashPath=platform:/base/plugins/org.eclipse.platform
    osgi.syspath=c:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse\plugins
    osgi.ws=win32
    path.separator=;
    sun.arch.data.model=32
    sun.boot.class.path=C:\Program Files\Java\jre6\lib\resources.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Program Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Program Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\classes
    sun.boot.library.path=C:\Program Files\Java\jre6\bin
    sun.cpu.endian=little
    sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop=windows
    sun.io.unicode.encoding=UnicodeLittle
    sun.jnu.encoding=Cp1252
    sun.management.compiler=HotSpot Client Compiler
    sun.os.patch.level=Service Pack 1
    user.country=FR
    user.dir=c:\Users\emmanuel\Downloads\birt-report-designer-all-in-one-2_3_1\eclipse
    user.home=C:\Users\emmanuel
    user.language=fr
    user.name=emmanuel
    user.timezone=Europe/Paris
    user.variant=
     
    *** Dispositifs :
    com.lowagie.itext (1.5.4.v20080225-1437w31191339) "Lowagie Itext"
    org.apache.commons.codec (1.3.0.v20070920-12-7w3119164102711) "Apache Commons Codec Plug-in"
    org.apache.derby.core (10.3.1.4) "Apache Derby Core Plug-in for Eclipse"
    org.eclipse.birt (2.3.1.v20080630-7N7Y7AAYdlIXLgz-SLsyMQ21x2fI) "Business Intelligence and Reporting Tools"
    org.eclipse.birt.chart (2.3.1.v20080630-7_7D4_toGwkNz0b4pt0sBQJZunS2) "BIRT Chart Framework"
    org.eclipse.birt.chart.cshelp (2.3.1.v20080630-2207w31191812) "BIRT Chart Context-sensitive Help"
    org.eclipse.birt.chart.doc.isv (2.3.1.v20080630-2207w31191_19) "BIRT Chart ISV Documentation"
    org.eclipse.birt.chart.runtime (2.3.1.v20080630-7X8n6EMNbos-rAPIYtmR1) "BIRT Chart Runtime"
    org.eclipse.birt.cshelp (2.3.1.v20080630-2207w31191_1_) "BIRT Context-sensitive Help"
    org.eclipse.birt.doc (2.3.1.v20080630-2207w31191_33c) "BIRT Documentation"
    org.eclipse.birt.doc.isv (2.3.1.v20080630-2207w31191_19) "BIRT ISV Documentation"
    org.eclipse.birt.example (2.3.1.v20080630-7D7J5CYQCD4D2If) "BIRT Example"
    org.eclipse.birt.report.designer (2.3.1.v20080630-7X7n7FECLqlyX1jw48bOyH4E0ha5) "BIRT Report Designer"
    org.eclipse.birt.report.runtime (2.3.1.v200807162-7k8E7KEMVkywAg5R0ebrWS) "BIRT Report Runtime"
    org.eclipse.cvs (1.1.1.r34x_20080902-7C79E8N9nJD4oAW9V1938) "Eclipse CVS Client"
    org.eclipse.datatools.common.doc.user (1.6.1.v200809191145-1507w31191939244824) "Data Tools Platform Tutorial Documentation"
    org.eclipse.datatools.connectivity.doc.user (1.6.1.v200809191145-27A18s733I3I7I599G59) "Data Tools Platform Connectivity Documentation"
    org.eclipse.datatools.connectivity.feature (1.6.1.v200809191145-7_7K7_Dn-QY4jNGDlg0YiVa76H) "Data Tools Platform Connectivity Plug-in"
    org.eclipse.datatools.connectivity.oda.designer.feature (1.6.1.v200809191145-7C67OCYQCD4D-JkHcYh) "DTP ODA Designer UI Framework Plug-in"
    org.eclipse.datatools.connectivity.oda.feature (1.6.1.v200809191145-7F27PBcMAAwAtKkESVZ) "DTP Open Data Access"
    org.eclipse.datatools.doc.user (1.6.1.v200809191145-37A09oA55S5P_P8CEO24) "Data Tools Platform User Documentation"
    org.eclipse.datatools.enablement.apache.derby.feature (1.6.1.v200809191145-652AlJAKaLiJyLhdmBEKK) "High-level Sybase Enablement Plug-in"
    org.eclipse.datatools.enablement.feature (1.6.1.v200809191145-7D8H7C9FSwOBZabCz-MXEZLR8Rnc) "Eclipse Data Tools Platform Enablement"
    org.eclipse.datatools.enablement.hsqldb.feature (1.6.1.v200809191145-57_1_pF9IQJZIsJcVhBEKK) "Eclipse Data Tools Platform Enablement"
    org.eclipse.datatools.enablement.ibm.feature (1.6.1.v200809191145-7D43EB7sQS9RbiYgHAa) "Eclipse Data Tools Platform Enablement"
    org.eclipse.datatools.enablement.jdbc.feature (1.6.1.v200809191145-3-09oA55S5J8JADJJ) "High-level Sybase Enablement Plug-in"
    org.eclipse.datatools.enablement.msft.feature (1.6.1.v200809191145-442_kE77c7VBQDFNW) "Eclipse Data Tools Platform Enablement"

  8. #8
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Points : 48 807
    Points
    48 807
    Par défaut
    Citation Envoyé par magikk Voir le message
    Sinon j'ai pas trop compris l'histoire du compilateur..Comment je sais quelle version d'installation j'ai installé?
    tu va dans eclipse -> window -> preferences -> java -> installed JRE et tu aura la liste des installations java accessible à ton eclipse. Tu peux en rajouter avec le bouton add. D'habitude, les jdk sont dans des folder appelé jdk* et les jre dans des folder jre*.

    Quand à l'aspect technique, tu va faire du développement, alros l'eapsect technique va falloir t'y faire, on s'y frotte toute le temps

  9. #9
    Membre régulier
    Profil pro
    Inscrit en
    Février 2008
    Messages
    114
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2008
    Messages : 114
    Points : 83
    Points
    83
    Par défaut
    en effet dans JRE installés je n'ai pas de JDK mais seulement un JRE.J'ai:
    jre6, emplacement:c:program files\Java\jre6.Dois-je installer autre chose?

    Sinon j'ai essayé d'aller sur le site de sun pour télécharger le fichier src.zip mais je ne vois pas très bien quoi installer.J'ai fait un java -jar mais que faut-il faire exactement?Y-a -il un éclipse préinstallé avec les codes sources de toutes les classes disponible?

  10. #10
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Points : 48 807
    Points
    48 807
    Par défaut
    Pour développer et compiler en java, il te faut un jdk, que tu téléchargera sur le site de sun (java.sun.com -> download -> jdk). Le JRE ne te sert à rien pour le développement et zrc.zip non plus.

  11. #11
    Expert éminent sénior
    Avatar de adiGuba
    Homme Profil pro
    Développeur Java/Web
    Inscrit en
    Avril 2002
    Messages
    13 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java/Web
    Secteur : Transports

    Informations forums :
    Inscription : Avril 2002
    Messages : 13 938
    Points : 23 190
    Points
    23 190
    Billets dans le blog
    1
    Par défaut
    Salut,

    Citation Envoyé par magikk Voir le message
    en effet dans JRE installés je n'ai pas de JDK mais seulement un JRE.J'ai:
    jre6, emplacement:c:program files\Java\jre6.Dois-je installer autre chose?
    Ceci est propre à eclipse : dans "JRE installés" fait "Ajouter"->"VM Standard" et indique l'emplacement de ton JDK, puis coche la case correspondante pour l'utiliser par défaut.

    Citation Envoyé par magikk Voir le message
    Sinon j'ai essayé d'aller sur le site de sun pour télécharger le fichier src.zip mais je ne vois pas très bien quoi installer.J'ai fait un java -jar mais que faut-il faire exactement?
    Le fichier src.zip est inclut dans le JDK. Sauf erreur il n'est pas disponible à part...

    Citation Envoyé par magikk Voir le message
    Y-a -il un éclipse préinstallé avec les codes sources de toutes les classes disponible?
    Non.
    Il suffit d'indiquer à eclipse d'utiliser un JDK pour qu'il utilise automatiquement le fichier src.zip (s'il est installé bien sûr).

    Citation Envoyé par tchize_ Voir le message
    Pour développer et compiler en java, il te faut un jdk, que tu téléchargera sur le site de sun (java.sun.com -> download -> jdk). Le JRE ne te sert à rien pour le développement et zrc.zip non plus.
    Quelques remarques propre à eclipse !

    eclipse est en quelque sorte un mini-JDK, puisqu'il intègre son propre compilateur. On peut donc très bien développer avec eclipse et un simple JRE !

    Toutefois l'installation d'un JDK avec eclipse est intéressante pour plusieurs points :
    • S'il est configuré avec un JDK, eclipse permet donc le Ctrl+clic pour afficher le code source des classes standards. Il affiche également la javadoc au survol et reprend le nom des paramètres des méthodes (au lieu de arg1, arg2, etc.)...
    • Cela permet également de générer la javadoc via eclipse (il utilise l'outil du JDK).
    • On peut utiliser les autres outils du JDK, comme jvisualvm par exemple



    a++

  12. #12
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Points : 48 807
    Points
    48 807
    Par défaut
    Citation Envoyé par adiGuba Voir le message

    eclipse est en quelque sorte un mini-JDK, puisqu'il intègre son propre compilateur. On peut donc très bien développer avec eclipse et un simple JRE !
    A ben je savais pas, ca explique pourquoi le code compilé sous eclipse se comporte parfois différement du code compilé à part (le compilateur java foire, le compilateur eclipse remplace le code foireux par un throw new CompilationError("message d'erreur de la copilation")

Discussions similaires

  1. Probleme avec la recherche directe de methodes sur une Class (API java.lang.reflect)
    Par CyberChouan dans le forum API standards et tierces
    Réponses: 14
    Dernier message: 25/01/2007, 17h12
  2. [XML/java]QUEL API? quel methode
    Par valal dans le forum Format d'échange (XML, JSON...)
    Réponses: 10
    Dernier message: 30/08/2006, 10h43
  3. [USB] la meilleure API java
    Par salber dans le forum Entrée/Sortie
    Réponses: 5
    Dernier message: 07/02/2005, 15h13
  4. Réponses: 3
    Dernier message: 07/12/2004, 14h15
  5. [LOG4J][API java.util.logging.*] Differences
    Par Righetto Dominique dans le forum Logging
    Réponses: 2
    Dernier message: 22/11/2004, 15h12

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo