<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1100261&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [Résolu]Aide pour un script/variable d'env.]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1100261</link>
		<description><![CDATA[Les sujets les plus récents dans [Résolu]Aide pour un script/variable d'env..]]></description>
		<lastBuildDate>Sat, 10 Nov 2012 12:27:47 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu]Aide pour un script/variable d'env.]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11462211#p11462211</link>
			<description><![CDATA[<p>Ca marche bien, merci.</p>]]></description>
			<author><![CDATA[dummy@example.com (ShinouQ)]]></author>
			<pubDate>Sat, 10 Nov 2012 12:27:47 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11462211#p11462211</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu]Aide pour un script/variable d'env.]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11460841#p11460841</link>
			<description><![CDATA[<p>Je ne connais pas java et ses subtilités.<br />Pour retrouver ton répertoire courant au retour de la commande :</p><div class="codebox"><pre><code>alias mars=&#039;(cd ~/Téléchargements; java Mars)&#039;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Sat, 10 Nov 2012 10:40:01 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11460841#p11460841</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu]Aide pour un script/variable d'env.]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11460741#p11460741</link>
			<description><![CDATA[<p>D&#039;ailleurs je ne comprends pas, je créé un script et je change le PATH pour pouvoir exécuter le script n&#039;importe où, mais alors quand dans le terminal je tape :<br />bash scriptmars<br />ça marche, puis quand je tape<br />scriptmars<br />cela m&#039;affiche une erreur... (à peu près la même que celle copiée ci-dessus)</p>]]></description>
			<author><![CDATA[dummy@example.com (ShinouQ)]]></author>
			<pubDate>Sat, 10 Nov 2012 10:27:16 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11460741#p11460741</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu]Aide pour un script/variable d'env.]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11460481#p11460481</link>
			<description><![CDATA[<p>Oui l&#039;ennui avec ma ligne c&#039;est que cela change le répertoire courant... J&#039;ai remis la ligne que tu as écrite et l&#039;erreur que j&#039;ai eue plus tôt se répète :</p><p>Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: /home/haffner/Téléchargements/Mars<br />Caused by: java.lang.ClassNotFoundException: .home.haffner.Téléchargements.Mars<br />&#160; &#160; at java.net.URLClassLoader$1.run(URLClassLoader.java:217)<br />&#160; &#160; at java.security.AccessController.doPrivileged(Native Method)<br />&#160; &#160; at java.net.URLClassLoader.findClass(URLClassLoader.java:205)<br />&#160; &#160; at java.lang.ClassLoader.loadClass(ClassLoader.java:321)<br />&#160; &#160; at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)<br />&#160; &#160; at java.lang.ClassLoader.loadClass(ClassLoader.java:266)<br />Could not find the main class: /home/haffner/Téléchargements/Mars. Program will exit.</p><br /><p>Edit : Petite précision, il n&#039;y a pas vraiment de fichier Mars dans mon dossier Téléchargements, il y a un dossier &quot;mars&quot; et les fichiers Mars.java, Mars.class</p>]]></description>
			<author><![CDATA[dummy@example.com (ShinouQ)]]></author>
			<pubDate>Sat, 10 Nov 2012 10:01:19 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11460481#p11460481</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu]Aide pour un script/variable d'env.]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11460091#p11460091</link>
			<description><![CDATA[<div class="quotebox"><cite>ShinouQ #3 a écrit&#160;:</cite><blockquote><div><p>alias mars=&#039;cd ~Téléchargements; java Mars&#039;</p></div></blockquote></div><p>C&#039;est plutôt</p><div class="codebox"><pre><code>alias mars=&#039;cd ~/Téléchargements; java Mars&#039;</code></pre></div><p><span class="bbu">Précision</span> : La commande ci-dessus va changer le répertoire courant, mais pas celle-ci</p><div class="codebox"><pre><code>alias mars=&#039;java ~/Téléchargements/Mars&#039;</code></pre></div><p><span class="bbu">Remarque</span> : Dans ton message #1, tu avais écrit <strong>Téléchargement</strong> et non <strong>Téléchargements</strong></p>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Sat, 10 Nov 2012 09:28:03 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11460091#p11460091</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu]Aide pour un script/variable d'env.]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11460061#p11460061</link>
			<description><![CDATA[<p>Salut, merci de m&#039;avoir aidé <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />J&#039;ai du un peu changer la ligne comme ça affichait une erreur, j&#039;ai mis<br />alias mars=&#039;cd ~Téléchargements; java Mars&#039;<br />du coup ça marche bien, je ne connaissais pas bien les alias, merci <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (ShinouQ)]]></author>
			<pubDate>Sat, 10 Nov 2012 09:21:22 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11460061#p11460061</guid>
		</item>
		<item>
			<title><![CDATA[Réponse à&#160;:  [Résolu]Aide pour un script/variable d'env.]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11459881#p11459881</link>
			<description><![CDATA[<p>Bonjour,<br />Tu peux faire un alias, à mettre dans <strong>~/.bashrc</strong> :</p><div class="codebox"><pre><code>alias mars=&#039;java ~/Téléchargement/Mars&#039;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (pingouinux)]]></author>
			<pubDate>Sat, 10 Nov 2012 08:59:54 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11459881#p11459881</guid>
		</item>
		<item>
			<title><![CDATA[[Résolu]Aide pour un script/variable d'env.]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11459721#p11459721</link>
			<description><![CDATA[<p>Bonjour! Il y a une manip&#039; que j&#039;aimerai faire sur mon pc mais je ne sais pas comment m&#039;y prendre... Le problème est le suivant:<br />je suis étudiant en informatique et j&#039;ai un logiciel téléchargé qui reste dans mon dossier home/Téléchargements. Pour le lancer, je dois toujours aller dans le terminal et une fois dans le dossier adéquat je dois lancer la commande<br />java Mars<br />(Mars étant le nom du logiciel)<br />hors me déplacer à chaque fois dans le dossier Téléchargements est un peu embêtant surtout que je sauvegarde mes fichiers Mars dans un autre dossier... Hormis déplacer le logiciel dans un autre endroit, y a-t&#039;il la possibilité de faire un script ou de créer une variable d&#039;environnement pour pouvoir lancer le logiciel depuis le terminal, quelque soit mon emplacement dans la hiérarchie des dossiers en écrivant juste<br />mars<br />?</p><p>Voilà c&#039;est tout j&#039;espère que j&#039;ai pu clairement expliquer mon problème !<br />Merci <img src="http://forum.ubuntu-fr.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (ShinouQ)]]></author>
			<pubDate>Sat, 10 Nov 2012 08:36:37 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11459721#p11459721</guid>
		</item>
	</channel>
</rss>
