java - Eclipse giving me XML junk in console instead of running program -


note: running eclipse adt build: v22.2.1-833290

example: have java code:

file: helloworld.java

public class helloworld {     public static void main(string[] args)     {         system.out.println("hello world!");     } } 

works fine if compile , run @ console. however, when run file in eclipse, garbage shown below. trust computers enough know eclipse giving me asking give me, meaning i've got switch set somewhere. question is, how eclipse stop giving me asked , give me want?

update using "run" button on toolbar, per usual, found if used context menu run --> java application, run fine, , run fine after button. must have messed default run configuration. there way set properly? really, small annoyance @ point.

<connectionproperties>  <propertycategory name="connection/authentication">   <property name="user" required="no" default="" sortorder="-2147483647" since="all versions">     user connect   </property>   <property name="password" required="no" default="" sortorder="-2147483646" since="all versions">     password use when connecting   </property>   <property name="socketfactory" required="no" default="com.mysql.jdbc.standardsocketfactory" sortorder="4" since="3.0.3">     name of class driver should use creating socket connections server. class must implement interface 'com.mysql.jdbc.socketfactory' , have public no-args constructor.   </property>   <property name="connecttimeout" required="no" default="0" sortorder="9" since="3.0.1">     timeout socket connect (in milliseconds), 0 being no timeout. works on jdk-1.4 or newer. defaults '0'.   </property>   <property name="sockettimeout" required="no" default="0" sortorder="10" since="3.0.1">     timeout on network socket operations (0, default means no timeout).   </property>   <property name="connectionlifecycleinterceptors" required="no" default="" sortorder="2147483647" since="5.1.4">     comma-delimited list of classes implement "com.mysql.jdbc.connectionlifecycleinterceptor" should notified of connection lifecycle events (creation, destruction, commit, rollback, setcatalog , setautocommit) , potentially alter execution of these commands. connectionlifecycleinterceptors "stackable", more 1 interceptor may specified via configuration property comma-delimited list, interceptors executed in order left right.   </property>   <property name="useconfigs" required="no" default="" sortorder="2147483647" since="3.1.5">     load comma-delimited list of configuration properties before parsing url or applying user-specified properties. these configurations explained in 'configurations' of documentation.   </property>   <property name="authenticationplugins" required="no" default="" sortorder="alpha" since="5.1.19">     comma-delimited list of classes implement com.mysql.jdbc.authenticationplugin , used authentication unless disabled "disabledauthenticationplugins" property.   </property>   <property name="defaultauthenticationplugin" required="no" default="com.mysql.jdbc.authentication.mysqlnativepasswordplugin" sortorder="alpha" since="5.1.19">     name of class implementing com.mysql.jdbc.authenticationplugin used default authentication plugin (see below). error use class not listed in "authenticationplugins" nor 1 of built-in plugins. error set default plugin disabled "disabledauthenticationplugins" property. error set value null or empty string (i.e. there must @ least valid default authentication plugin specified connection, meeting constraints listed above).   </property>   <property name="disabledauthenticationplugins" required="no" default="" sortorder="alpha" since="5.1.19">     comma-delimited list of classes implementing com.mysql.jdbc.authenticationplugin or mechanisms, i.e. "mysql_native_password". authentication plugins or mechanisms listed not used authentication fail if requires 1 of them. error disable default authentication plugin (either 1 named "defaultauthenticationplugin" property or hard-coded 1 if "defaultauthenticationplugin" property not set).   </property>   <property name="disconnectonexpiredpasswords" required="no" default="true" sortorder="alpha" since="5.1.23">     if "disconnectonexpiredpasswords" set "false" , password expired server enters "sandbox" mode , sends err(08001, er_must_change_password) commands not needed set new password until new password set.   </property>   <property name="interactiveclient" required="no" default="false" sortorder="alpha" since="3.1.0">     set client_interactive flag, tells mysql timeout connections based on interactive_timeout instead of wait_timeout   </property>   <property name="localsocketaddress" required="no" default="" sortorder="alpha" since="5.0.5">     hostname or ip address given explicitly configure interface driver bind client side of tcp/ip connection when connecting.   </property>   <property name="propertiestransform" required="no" default="" sortorder="alpha" since="3.1.4">     implementation of com.mysql.jdbc.connectionpropertiestransform driver use modify url properties passed driver before attempting connection   </property>   <property name="usecompression" required="no" default="false" sortorder="alpha" since="3.0.17">     use zlib compression when communicating server (true/false)? defaults 'false'.   </property>  </propertycategory>  <propertycategory name="networking">   <property name="maxallowedpacket" required="no" default="-1" sortorder="alpha" since="5.1.8">     maximum allowed packet size send server. if not set, value of system variable 'max_allowed_packet' used initialize upon connecting. value not take effect if set larger value of 'max_allowed_packet'. also, due internal dependency property "blobsendchunksize", setting has minimum value of "8203" if "useserverprepstmts" set "true".   </property>   <property name="tcpkeepalive" required="no" default="true" sortorder="alpha" since="5.0.7">     if connecting using tcp/ip, should driver set so_keepalive?   </property>   <property name="tcpnodelay" required="no" default="true" sortorder="alpha" since="5.0.7">     if connecting using tcp/ip, should driver set so_tcp_nodelay (disabling nagle algorithm)?   </property>   <property name="tcprcvbuf" required="no" default="0" sortorder="alpha" since="5.0.7">     if connecting using tcp/ip, should driver set so_rcv_buf given value? default value of '0', means use platform default value property)   </property>   <property name="tcpsndbuf" required="no" default="0" sortorder="alpha" since="5.0.7">     if connecting using tcp/ip, should driver set so_snd_buf given value? default value of '0', means use platform default value property)   </property>   <property name="tcptrafficclass" required="no" default="0" sortorder="alpha" since="5.0.7">     if connecting using tcp/ip, should driver set traffic class or type-of-service fields ?see documentation java.net.socket.settrafficclass() more information.   </property>  </propertycategory>  <propertycategory name="high availability , clustering">   <property name="autoreconnect" required="no" default="false" sortorder="0" since="1.1">     should driver try re-establish stale and/or dead connections? if enabled driver throw exception queries issued on stale or dead connection, belong current transaction, attempt reconnect before next query issued on connection in new transaction. use of feature not recommended, because has side effects related session state , data consistency when applications don't handle sqlexceptions properly, , designed used when unable configure application handle sqlexceptions resulting dead , stale connections properly. alternatively, last option, investigate setting mysql server variable "wait_timeout" high value, rather default of 8 hours.   </property>   <property name="autoreconnectforpools" required="no" default="false" sortorder="1" since="3.1.3">     use reconnection strategy appropriate connection pools (defaults 'false')   </property>   <property name="failoverreadonly" required="no" default="true" sortorder="2" since="3.0.12">     when failing on in autoreconnect mode, should connection set 'read-only'?   </property>   <property name="maxreconnects" required="no" default="3" sortorder="4" since="1.1">     maximum number of reconnects attempt if autoreconnect true, default '3'.   </property>   <property name="reconnectattxend" required="no" default="false" sortorder="4" since="3.0.10">     if autoreconnect set true, should driver attempt reconnections @ end of every transaction?   </property>   <property name="retriesalldown" required="no" default="120" sortorder="4" since="5.1.6">     when using loadbalancing, number of times driver should cycle through available hosts, attempting connect.  between cycles, driver pause 250ms if no servers available.   </property>   <property name="initialtimeout" required="no" default="2" sortorder="5" since="1.1">     if autoreconnect enabled, initial time wait between re-connect attempts (in seconds, defaults '2').   </property>   <property name="roundrobinloadbalance" required="no" default="false" sortorder="5" since="3.1.2">     when autoreconnect enabled, , failoverreadonly false, should pick hosts connect on round-robin basis?   </property>   <property name="queriesbeforeretrymaster" required="no" default="50" sortorder="7" since="3.0.2">     number of queries issue before falling master when failed on (when using multi-host failover). whichever condition met first, 'queriesbeforeretrymaster' or 'secondsbeforeretrymaster' cause attempt made reconnect master. defaults 50.   </property>   <property name="secondsbeforeretrymaster" required="no" default="30" sortorder="8" since="3.0.2">     how long should driver wait, when failed over, before attempting    </property>   <property name="allowmasterdownconnections" required="no" default="false" sortorder="2147483647" since="5.1.27">     should replication-aware driver establish connections slaves when connection master servers cannot established @ initial connection?  defaults 'false', cause sqlexception when configured master hosts unavailable when establishing new replication-aware connection.   </property>   <property name="replicationenablejmx" required="no" default="false" sortorder="2147483647" since="5.1.27">     enables jmx-based management of load-balanced connection groups, including live addition/removal of hosts load-balancing pool.   </property>   <property name="selfdestructonpingmaxoperations" required="no" default="0" sortorder="2147483647" since="5.1.6">     =if set non-zero value, driver report close connection , report failure when connection.ping() or connection.isvalid(int) called if connection's count of commands sent server exceeds value.   </property>   <property name="selfdestructonpingsecondslifetime" required="no" default="0" sortorder="2147483647" since="5.1.6">     if set non-zero value, driver report close connection , report failure when connection.ping() or connection.isvalid(int) called if connection's lifetime exceeds value.   </property>   <property name="resourceid" required="no" default="" sortorder="alpha" since="5.0.1">     globally unique name identifies resource datasource or connection connected to, used xaresource.issamerm() when driver can't determine value based on hostnames used in url   </property>  </propertycategory>  <propertycategory name="security">   <property name="allowmultiqueries" required="no" default="false" sortorder="1" since="3.1.1">     allow use of ';' delimit multiple queries during 1 statement (true/false), defaults 'false', , not affect addbatch() , executebatch() methods, instead rely on rewritebatchstatements.   </property>   <property name="usessl" required="no" default="false" sortorder="2" since="3.0.2">     use ssl when communicating server (true/false), defaults 'false'   </property>   <property name="requiressl" required="no" default="false" sortorder="3" since="3.1.0">     require ssl connection if usessl=true? (defaults 'false').   </property>   <property name="verifyservercertificate" required="no" default="true" sortorder="4" since="5.1.6">     if "usessl" set "true", should driver verify server's certificate? when using feature, keystore parameters should specified "clientcertificatekeystore*" properties, rather system properties.   </property>   <property name="clientcertificatekeystoreurl" required="no" default="" sortorder="5" since="5.1.0">     url client certificate keystore (if not specified, use defaults)   </property>   <property name="clientcertificatekeystoretype" required="no" default="jks" sortorder="6" since="5.1.0">     keystore type client certificates (null or empty means use default, "jks". standard keystore types supported jvm "jks" , "pkcs12", environment may have more available depending on security products installed , available jvm.   </property>   <property name="clientcertificatekeystorepassword" required="no" default="" sortorder="7" since="5.1.0">     password client certificates keystore   </property>   <property name="trustcertificatekeystoreurl" required="no" default="" sortorder="8" since="5.1.0">     url trusted root certificate keystore (if not specified, use defaults)   </property>   <property name="trustcertificatekeystoretype" required="no" default="jks" sortorder="9" since="5.1.0">     keystore type trusted root certificates (null or empty means use default, "jks". standard keystore types supported jvm "jks" , "pkcs12", environment may have more available depending on security products installed , available jvm.   </property>   <property name="trustcertificatekeystorepassword" required="no" default="" sortorder="10" since="5.1.0">     password trusted root certificates keystore   </property>   <property name="allowloadlocalinfile" required="no" default="true" sortorder="2147483647" since="3.0.3">     should driver allow use of 'load data local infile...' (defaults 'true').   </property>   <property name="allowurlinlocalinfile" required="no" default="false" sortorder="2147483647" since="3.1.4">     should driver allow urls in 'load data local infile' statements?   </property>   <property name="paranoid" required="no" default="false" sortorder="alpha" since="3.0.1">     take measures prevent exposure sensitive information in error messages , clear data structures holding sensitive data when possible? (defaults 'false')   </property>   <property name="passwordcharacterencoding" required="no" default="" sortorder="alpha" since="5.1.7">     character encoding used passwords? leaving set default value (null), uses platform character set, works iso8859_1 (i.e. "latin1") passwords. passwords in other character encodings, encoding have specified property, it's not possible driver auto-detect this.   </property>  </propertycategory>  <propertycategory name="performance extensions">   <property name="callablestmtcachesize" required="no" default="100" sortorder="5" since="3.1.2">     if 'cachecallablestmts' enabled, how many callable statements should cached?   </property>   <property name="metadatacachesize" required="no" default="50" sortorder="5" since="3.1.1">     number of queries cache resultsetmetadata if cacheresultsetmetadata set 'true' (default 50)   </property>   <property name="uselocalsessionstate" required="no" default="false" sortorder="5" since="3.1.7">     should driver refer internal values of autocommit , transaction isolation set connection.setautocommit() , connection.settransactionisolation() , transaction state maintained protocol, rather querying database or blindly sending commands database commit() or rollback() method calls?   </property>   <property name="uselocaltransactionstate" required="no" default="false" sortorder="6" since="5.1.7">     should driver use in-transaction state provided mysql protocol determine if commit() or rollback() should sent database?   </property>   <property name="prepstmtcachesize" required="no" default="25" sortorder="10" since="3.0.10">     if prepared statement caching enabled, how many prepared statements should cached?   </property>   <property name="prepstmtcachesqllimit" required="no" default="256" sortorder="11" since="3.0.10">     if prepared statement caching enabled, what's largest sql driver cache parsing for?   </property>   <property name="parseinfocachefactory" required="no" default="com.mysql.jdbc.perconnectionlrufactory" sortorder="12" since="5.1.1">     name of class implementing com.mysql.jdbc.cacheadapterfactory, used create caches parsed representation of client-side prepared statements.   </property>   <property name="serverconfigcachefactory" required="no" default="com.mysql.jdbc.pervmserverconfigcachefactory" sortorder="12" since="5.1.1">     name of class implementing com.mysql.jdbc.cacheadapterfactory&lt;string, map&lt;string, string&gt;&gt;, used create caches mysql server configuration values   </property>   <property name="alwayssendsetisolation" required="no" default="true" sortorder="2147483647" since="3.1.7">     should driver communicate database when connection.settransactionisolation() called? if set false, driver communicate database when requested transaction isolation different whichever newer, last value set via connection.settransactionisolation(), or value read server when connection established.  note uselocalsessionstate=true force same behavior alwayssendsetisolation=false, regardless of how alwayssendsetisolation set.   </property>   <property name="maintaintimestats" required="no" default="true" sortorder="2147483647" since="3.1.9">     should driver maintain various internal timers enable idle time calculations more verbose error messages when connection server fails? setting property false removes @ least 2 calls system.getcurrenttimemillis() per query.   </property>   <property name="usecursorfetch" required="no" default="false" sortorder="2147483647" since="5.0.0">     if connected mysql &gt; 5.0.2, , setfetchsize() &gt; 0 on statement, should statement use cursor-based fetching retrieve rows?   </property>   <property name="blobsendchunksize" required="no" default="1048576" sortorder="alpha" since="3.1.9">     chunk size use when sending blob/clobs via serverpreparedstatements. note value cannot exceed value of "maxallowedpacket" and, if case, value corrected automatically.   </property>   <property name="cachecallablestmts" required="no" default="false" sortorder="alpha" since="3.1.2">     should driver cache parsing stage of callablestatements   </property>   <property name="cacheprepstmts" required="no" default="false" sortorder="alpha" since="3.0.10">     should driver cache parsing stage of preparedstatements of client-side prepared statements, "check" suitability of server-side prepared , server-side prepared statements themselves?   </property>   <property name="cacheresultsetmetadata" required="no" default="false" sortorder="alpha" since="3.1.1">     should driver cache resultsetmetadata statements , preparedstatements? (req. jdk-1.4+, true/false, default 'false')   </property>   <property name="cacheserverconfiguration" required="no" default="false" sortorder="alpha" since="3.1.5">     should driver cache results of 'show variables' , 'show collation' on per-url basis?   </property>   <property name="defaultfetchsize" required="no" default="0" sortorder="alpha" since="3.1.9">     driver call setfetchsize(n) value on newly-created statements   </property>   <property name="donttrackopenresources" required="no" default="false" sortorder="alpha" since="3.1.7">     jdbc specification requires driver automatically track , close resources, if application doesn't job of explicitly calling close() on statements or result sets, can cause memory leakage. setting property true relaxes constraint, , can more memory efficient applications. automatic closing of statement , current resultset in statement.closeoncompletion() , statement.getmoreresults ([statement.close_current_result | statement.close_all_results]), respectively, ceases happen. property automatically sets holdresultsopenoverstatementclose=true.   </property>   <property name="dynamiccalendars" required="no" default="false" sortorder="alpha" since="3.1.5">     should driver retrieve default calendar when required, or cache per connection/session?   </property>   <property name="elidesetautocommits" required="no" default="false" sortorder="alpha" since="3.1.3">     if using mysql-4.1 or newer, should driver issue 'set autocommit=n' queries when server's state doesn't match requested state connection.setautocommit(boolean)?   </property>   <property name="enablequerytimeouts" required="no" default="true" sortorder="alpha" since="5.0.6">     when enabled, query timeouts set via statement.setquerytimeout() use shared java.util.timer instance scheduling. if timeout doesn't expire before query processed, there memory used timertask given timeout won't reclaimed until time timeout have expired if hadn't been cancelled driver. high-load environments might want consider disabling functionality.   </property>   <property name="holdresultsopenoverstatementclose" required="no" default="false" sortorder="alpha" since="3.1.7">     should driver close result sets on statement.close() required jdbc specification?   </property>   <property name="largerowsizethreshold" required="no" default="2048" sortorder="alpha" since="5.1.1">     size result set row should jdbc driver consider "large", , use more memory-efficient way of representing row internally?   </property>   <property name="loadbalancestrategy" required="no" default="random" sortorder="alpha" since="5.0.6">     if using load-balanced connection connect sql nodes in mysql cluster/ndb configuration (by using url prefix "jdbc:mysql:loadbalance://"), load balancing algorithm should driver use: (1) "random" - driver pick random host each request. tends work better round-robin, randomness account spreading loads requests vary in response time, while round-robin can lead overloaded nodes if there variations in response times across workload. (2) "bestresponsetime" - driver route request host had best response time previous transaction.   </property>   <property name="locatorfetchbuffersize" required="no" default="1048576" sortorder="alpha" since="3.2.1">     if 'emulatelocators' configured 'true', size buffer should used when fetching blob data getbinaryinputstream?   </property>   <property name="rewritebatchedstatements" required="no" default="false" sortorder="alpha" since="3.1.13">     should driver use multiqueries (irregardless of setting of "allowmultiqueries") rewriting of prepared statements insert multi-value inserts when executebatch() called? notice has potential sql injection if using plain java.sql.statements , code doesn't sanitize input correctly. notice prepared statements, server-side prepared statements can not take advantage of rewrite option, , if don't specify stream lengths when using preparedstatement.set*stream(), driver won't able determine optimum number of parameters per batch , might receive error driver resultant packet large. statement.getgeneratedkeys() these rewritten statements works when entire batch includes insert statements. please aware using rewritebatchedstatements=true insert .. on duplicate key update rewritten statement server returns 1 value sum of affected (or found) rows in batch , isn't possible map correctly initial statements; in case driver returns total result result of each batch statement, i.e. unambiguous result 0.   </property>   <property name="usedirectrowunpack" required="no" default="true" sortorder="alpha" since="5.1.1">     use newer result set row unpacking code skips copy network buffers  mysql packet instance , instead reads directly result set row data buffers.   </property>   <property name="usedynamiccharsetinfo" required="no" default="true" sortorder="alpha" since="5.0.6">     should driver use per-connection cache of character set information queried server when necessary, or use built-in static mapping more efficient, isn't aware of custom character sets or character sets implemented after release of jdbc driver?   </property>   <property name="usefastdateparsing" required="no" default="true" sortorder="alpha" since="5.0.5">     use internal string->date/time/timestamp conversion routines avoid excessive object creation?   </property>   <property name="usefastintparsing" required="no" default="true" sortorder="alpha" since="3.1.4">     use internal string->integer conversion routines avoid excessive object creation?   </property>   <property name="usejvmcharsetconverters" required="no" default="false" sortorder="alpha" since="5.0.1">     use character encoding routines built jvm, rather using lookup tables single-byte character sets?   </property>   <property name="usereadaheadinput" required="no" default="true" sortorder="alpha" since="3.1.5">     use newer, optimized non-blocking, buffered input stream when reading server?   </property>  </propertycategory>  <propertycategory name="debugging/profiling">   <property name="logger" required="no" default="com.mysql.jdbc.log.standardlogger" sortorder="0" since="3.1.1">     name of class implements "com.mysql.jdbc.log.log"  used log messages to. (default "com.mysql.jdbc.log.standardlogger", logs stderr)   </property>   <property name="gatherperfmetrics" required="no" default="false" sortorder="1" since="3.1.2">     should driver gather performance metrics, , report them via configured logger every 'reportmetricsintervalmillis' milliseconds?   </property> 

etc. etc. etc.

expanding on comment.

since have mysql jars in lib\ext looks eclipse trying load these jars . try removing these jars , try running program again. putting jars in lib\ext considered bad practice.

related thread on mysql - here


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -